From c08fbb73a960bd19ab1ca553da5bb8111622baba Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 4 Jun 2018 21:12:02 +0200 Subject: Nixify build process Building the website in the presence of the Nix package manager is now as simple as: - cloning this repo - entering the nix-shell environment declared by `shell.nix` - calling `generate` - optionally call `preview` to spawn a webserver in `target/99_result` All dependencies such as the internal InputXSLT, StaticXSLT and BuildXSLT modules as well as external ones such as KaTeX and pandoc are built declaratively by Nix. --- pkgs/generate.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkgs/generate.nix (limited to 'pkgs/generate.nix') diff --git a/pkgs/generate.nix b/pkgs/generate.nix new file mode 100644 index 0000000..bb7d45a --- /dev/null +++ b/pkgs/generate.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: + +let + InputXSLT = pkgs.callPackage ./InputXSLT.nix {}; + StaticXSLT = pkgs.callPackage ./StaticXSLT.nix {}; + BuildXSLT = pkgs.callPackage ./BuildXSLT.nix {}; +in pkgs.writeScriptBin + "generate" + "${InputXSLT}/bin/ixslt --input make.xml --transformation ${BuildXSLT}/build.xsl --include ${StaticXSLT}/" -- cgit v1.2.3