diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-09 10:03:16 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-09 10:56:07 +0200 |
commit | 1247e537b0c8e5ed780ab890cbce4612714a0fa7 (patch) | |
tree | c5160a45367b8c7dd4f8b5d9162d908517da041e /pkgs/webapps/etherpad-lite/modules/ep_ruler | |
parent | 803d2d9f35005f10eb43e4568b7f0444d3f9d6aa (diff) | |
download | Nix-1247e537b0c8e5ed780ab890cbce4612714a0fa7.tar.gz Nix-1247e537b0c8e5ed780ab890cbce4612714a0fa7.tar.zst Nix-1247e537b0c8e5ed780ab890cbce4612714a0fa7.zip |
Make etherpad derivation pure
It also moves .ep_initialized to /var/lib to allow proper
initialization.
Diffstat (limited to 'pkgs/webapps/etherpad-lite/modules/ep_ruler')
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.json | 1 | ||||
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.nix | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.json b/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.json new file mode 100644 index 0000000..d31b236 --- /dev/null +++ b/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.json | |||
@@ -0,0 +1 @@ | |||
[ "ep_ruler" ] | |||
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.nix b/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.nix new file mode 100644 index 0000000..c8697d4 --- /dev/null +++ b/pkgs/webapps/etherpad-lite/modules/ep_ruler/node-packages.nix | |||
@@ -0,0 +1,27 @@ | |||
1 | {stdenv, nodeEnv, fetchurl, fetchgit, globalBuildInputs ? []}: | ||
2 | |||
3 | let | ||
4 | sources = {}; | ||
5 | in | ||
6 | { | ||
7 | ep_ruler = nodeEnv.buildNodePackage { | ||
8 | name = "ep_ruler"; | ||
9 | packageName = "ep_ruler"; | ||
10 | version = "0.0.2"; | ||
11 | src = fetchurl { | ||
12 | url = "https://registry.npmjs.org/ep_ruler/-/ep_ruler-0.0.2.tgz"; | ||
13 | sha1 = "5af10dfe0b5f33459566ce649cc483c680ed7811"; | ||
14 | }; | ||
15 | preRebuild = '' | ||
16 | sed -i -e 's/"dependencies"/"peerDependencies"/' package.json | ||
17 | ''; | ||
18 | buildInputs = globalBuildInputs; | ||
19 | meta = { | ||
20 | description = "Adds a ruler to Etherpad lite"; | ||
21 | homepage = https://github.com/iquidus/ep_ruler; | ||
22 | }; | ||
23 | production = true; | ||
24 | bypassCache = false; | ||
25 | }; | ||
26 | } | ||
27 | |||