aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae/history/default.nix
blob: 2335627e594faeb0b5d5c905fb16a5b677508204 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, bundlerEnv, ruby, stdenv }:

# rebuild with bundix -l
let
  jekyll = bundlerEnv rec {
    name = pname + "-" + version;
    pname = "jekyll";
    version = (import ./gemset.nix).jekyll.version;

    inherit ruby;
    gemdir = ./.;
  };
in
  stdenv.mkDerivation rec {
    pname = "changelog";
    version = "1";
    src = ./.;
    buildInputs = [ jekyll ];
    phases = [ "unpackPhase" "buildPhase" "installPhase"];
    buildPhase = ''
      jekyll build
    '';

    installPhase = ''
      cp -a _site $out
    '';
  }