about summary refs log tree commit diff
path: root/web/volgasprint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'web/volgasprint/default.nix')
-rw-r--r--web/volgasprint/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/volgasprint/default.nix b/web/volgasprint/default.nix
new file mode 100644
index 000000000000..5f49d88e2631
--- /dev/null
+++ b/web/volgasprint/default.nix
@@ -0,0 +1,23 @@
+{ pkgs, ... }:
+
+let
+  pythonEnv = pkgs.python3.withPackages (ps: with ps; [
+    mkdocs
+    mkdocs-material
+    pillow
+    cairosvg
+  ]);
+in
+pkgs.runCommand "website"
+{
+  buildInputs = [
+    pythonEnv
+  ];
+}
+  ''
+    cp -r ${./.} ./source
+    chmod -R +w ./source
+    cd ./source
+    mkdocs build
+    mv site $out
+  ''