aboutsummaryrefslogtreecommitdiff
path: root/modules/webapps/etherpad-lite.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-04 00:12:46 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-04 00:12:46 +0200
commit4b0a82cc2f4597a11b9275cf156ae9cceffaf44f (patch)
treea384ea0b7a610387f9a9cb8b6de4de58e8dd76b0 /modules/webapps/etherpad-lite.nix
parente9c91c19475ed679676829bfd716e41009b560c8 (diff)
downloadNix-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 'modules/webapps/etherpad-lite.nix')
-rw-r--r--modules/webapps/etherpad-lite.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/webapps/etherpad-lite.nix b/modules/webapps/etherpad-lite.nix
index 7f0e2ed..2e09952 100644
--- a/modules/webapps/etherpad-lite.nix
+++ b/modules/webapps/etherpad-lite.nix
@@ -57,18 +57,22 @@ in
57 description = '' 57 description = ''
58 Etherpad lite package to use. 58 Etherpad lite package to use.
59 ''; 59 '';
60 example = lib.literalExample ''
61 pkgs.webapps.etherpad-lite.withModules (p: [ p.ep_align ]);
62 '';
60 }; 63 };
61 modules = lib.mkOption { 64 modules = lib.mkOption {
62 type = lib.types.listOf lib.types.package; 65 type = lib.types.listOf lib.types.package;
63 default = []; 66 default = [];
64 description = '' 67 description = ''
65 Etherpad lite modules to use. 68 Etherpad lite modules to use.
69 DEPRECATED: use package directly
66 ''; 70 '';
67 }; 71 };
68 # Output variables 72 # Output variables
69 workdir = lib.mkOption { 73 workdir = lib.mkOption {
70 type = lib.types.package; 74 type = lib.types.package;
71 default = cfg.package.withModules cfg.modules; 75 default = cfg.package.withModules (_: cfg.modules);
72 description = '' 76 description = ''
73 Adjusted Etherpad lite package with plugins 77 Adjusted Etherpad lite package with plugins
74 ''; 78 '';