aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix22
1 files changed, 20 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 429d61a..5914731 100644
--- a/flake.nix
+++ b/flake.nix
@@ -16,9 +16,27 @@
pkgs-personal.katex-wrapper
pkgs-personal.make-xslt
];
+ };
+
+ generate = content: pkgs.stdenv.mkDerivation {
+ name = "blog.kummerlaender.eu";
+
+ src = ./.;
+
+ LANG = "en_US.UTF-8";
+
+ buildInputs = [
+ pkgs.pandoc
+ pkgs.highlight
+ pkgs-personal.katex-wrapper
+ pkgs-personal.make-xslt
+ ];
- shellHook = ''
- export NIX_SHELL_NAME="blog.kummerlaender.eu"
+ installPhase = ''
+ cp -r ${content} source/00_content
+ make-xslt
+ mkdir $out
+ cp -Lr target/99_result/* $out
'';
};
};