aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: dd9bb7c1daa67dcfaca42b7783c74b2e16179f57 (plain)
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
with import <nixpkgs> {};

stdenv.mkDerivation {
  name = "website";
  src = ./.;

  buildInputs = with pkgs; [
    python3
  ] ++ (with pkgs.python3Packages; [
    pelican
    markdown
    webassets
  ]);

  buildPhase = ''
    runHook preBuild
    make html
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mv output $out
    runHook postInstall
  '';
}