diff options
Diffstat (limited to 'modules/private/websites/tools/tools/landing.nix')
-rw-r--r-- | modules/private/websites/tools/tools/landing.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/private/websites/tools/tools/landing.nix b/modules/private/websites/tools/tools/landing.nix new file mode 100644 index 0000000..ac5c3cf --- /dev/null +++ b/modules/private/websites/tools/tools/landing.nix | |||
@@ -0,0 +1,21 @@ | |||
1 | { stdenv, fetchFromGitHub }: | ||
2 | stdenv.mkDerivation rec { | ||
3 | pname = "homer"; | ||
4 | version = "v1.0"; | ||
5 | src = fetchFromGitHub { | ||
6 | owner = "bastienwirtz"; | ||
7 | repo = "homer"; | ||
8 | rev = version; | ||
9 | sha256 = "0pgpkbqdg4728c8xan5q3lfb8najq118wn2497mc3h0md7l09m63"; | ||
10 | }; | ||
11 | |||
12 | phases = ["unpackPhase" "installPhase"]; | ||
13 | |||
14 | installPhase = '' | ||
15 | cp -a . $out | ||
16 | sed -i -e "s/vlayout: true,/vlayout: false,/" $out/app.js | ||
17 | cp ${./landing}/config.yml $out/ | ||
18 | cp ${./landing}/*.php $out/ | ||
19 | cp ${./landing}/icons/* $out/assets/tools/ | ||
20 | ''; | ||
21 | } | ||