]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - modules/private/websites/immae/history/default.nix
Add Denise websites
[perso/Immae/Config/Nix.git] / modules / private / websites / immae / history / default.nix
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 }