aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-08-22 20:41:11 +0200
committerAdrian Kummerlaender2021-08-22 20:41:11 +0200
commit254b008436f3649e77cd55154c77c949fdf3d3b4 (patch)
tree0bbb131165bdd9f10399b8528798f9f67c76597e
parent94e741cbc0b88a0efc681b4422201bbabdabd657 (diff)
downloadblog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar.gz
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar.bz2
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar.lz
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar.xz
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.tar.zst
blog.kummerlaender.eu-254b008436f3649e77cd55154c77c949fdf3d3b4.zip
Provide generate function
-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
'';
};
};