diff options
Diffstat (limited to 'modules/private/websites/immae/history/default.nix')
-rw-r--r-- | modules/private/websites/immae/history/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/private/websites/immae/history/default.nix b/modules/private/websites/immae/history/default.nix new file mode 100644 index 0000000..2335627 --- /dev/null +++ b/modules/private/websites/immae/history/default.nix | |||
@@ -0,0 +1,27 @@ | |||
1 | { lib, bundlerEnv, ruby, stdenv }: | ||
2 | |||
3 | # rebuild with bundix -l | ||
4 | let | ||
5 | jekyll = bundlerEnv rec { | ||
6 | name = pname + "-" + version; | ||
7 | pname = "jekyll"; | ||
8 | version = (import ./gemset.nix).jekyll.version; | ||
9 | |||
10 | inherit ruby; | ||
11 | gemdir = ./.; | ||
12 | }; | ||
13 | in | ||
14 | stdenv.mkDerivation rec { | ||
15 | pname = "changelog"; | ||
16 | version = "1"; | ||
17 | src = ./.; | ||
18 | buildInputs = [ jekyll ]; | ||
19 | phases = [ "unpackPhase" "buildPhase" "installPhase"]; | ||
20 | buildPhase = '' | ||
21 | jekyll build | ||
22 | ''; | ||
23 | |||
24 | installPhase = '' | ||
25 | cp -a _site $out | ||
26 | ''; | ||
27 | } | ||