From b1e6491f77421ae4623391a7f53af7f3e6c13f34 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Mon, 6 Jul 2020 18:23:10 +0100 Subject: import website from previous repo --- default.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 default.nix (limited to 'default.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..cc47ed0 --- /dev/null +++ b/default.nix @@ -0,0 +1,31 @@ +{ pkgs ? import {} }: +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 + ''; + +} -- cgit v1.2.3