about summary refs log tree commit diff
path: root/website/blog/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'website/blog/default.nix')
-rw-r--r--website/blog/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/website/blog/default.nix b/website/blog/default.nix
new file mode 100644
index 000000000000..437f5cc108d7
--- /dev/null
+++ b/website/blog/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, ... }:
+
+pkgs.stdenv.mkDerivation {
+  name = "blog.wpcarro.dev";
+  buildInputs = with pkgs; [ hugo ];
+  src = ./.;
+  buildPhase = ''
+    mkdir -p $out
+    ${pkgs.hugo}/bin/hugo --minify --destination $out
+  '';
+  dontInstall = true;
+}