diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 18:24:25 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 19:13:08 +0200 |
commit | 7130402cfecc196ce79c8f07a9dba71974f085e3 (patch) | |
tree | 072e82de987c0a1f9d1fac8be9c8f097e9a9f37f /modules/private/websites/immae/history/default.nix | |
parent | fe4199f8ab922735b81557f71199fa73a378e540 (diff) | |
download | Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.gz Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.zst Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.zip |
Add history page
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 | } | ||