summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix31
1 files changed, 31 insertions, 0 deletions
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 <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
+ '';
+
+}