diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
commit | 4b0a82cc2f4597a11b9275cf156ae9cceffaf44f (patch) | |
tree | a384ea0b7a610387f9a9cb8b6de4de58e8dd76b0 /pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix | |
parent | e9c91c19475ed679676829bfd716e41009b560c8 (diff) | |
download | Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.gz Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.zst Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.zip |
Fix some etherpad-lite modules and packaging
The upgrade to 1.8.3 broke many modules, which were patched to continue
working correctly.
This commit also reworks the module system, making it similar to
python’s withPackages.
Diffstat (limited to 'pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix')
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix b/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix index 9e6fdbe..8140187 100644 --- a/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix +++ b/pkgs/webapps/etherpad-lite/modules/ep_ldapauth/node-packages.nix | |||
@@ -330,6 +330,9 @@ in | |||
330 | url = "https://registry.npmjs.org/ep_ldapauth/-/ep_ldapauth-0.3.0.tgz"; | 330 | url = "https://registry.npmjs.org/ep_ldapauth/-/ep_ldapauth-0.3.0.tgz"; |
331 | sha1 = "8b34ea34b20ae97d53d753cc7d1f6f191800e3b0"; | 331 | sha1 = "8b34ea34b20ae97d53d753cc7d1f6f191800e3b0"; |
332 | }; | 332 | }; |
333 | preRebuild = '' | ||
334 | sed -i -e 's/context.message.data.type == "USERINFO_UPDATE"/context.message.data.type == "USERINFO_UPDATE" \&\& context.req \&\& context.req.session \&\& typeof(context.req.session.user) !== "undefined"/g' ep_ldapauth.js | ||
335 | ''; | ||
333 | dependencies = [ | 336 | dependencies = [ |
334 | sources."asn1-0.2.3" | 337 | sources."asn1-0.2.3" |
335 | sources."assert-plus-1.0.0" | 338 | sources."assert-plus-1.0.0" |
@@ -386,4 +389,4 @@ in | |||
386 | bypassCache = true; | 389 | bypassCache = true; |
387 | reconstructLock = true; | 390 | reconstructLock = true; |
388 | }; | 391 | }; |
389 | } \ No newline at end of file | 392 | } |