summaryrefslogtreecommitdiff
path: root/default.nix
blob: cc47ed0e7e567dcfe48106e8789a97050c156abb (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
27
28
29
30
31
{ pkgs ? import <nixpkgs> {} }:
with pkgs;

stdenv.mkDerivation rec {
  name = "ethulhu-co-uk-${version}";
  version = "latest"; 

  src = ./.;

  buildInputs = [
    python38
    python38Packages.jinja2
    python38Packages.markdown
    python38Packages.pyaml
  ];

  patchPhase = ''
    patchShebangs thrust
    patchShebangs generate-sitemap
  '';

  buildPhase = ''
    make -j
  '';

  installPhase = ''
    mkdir -p $out
    cp -r ./build/* $out
  '';

}