diff options
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.
Diffstat (limited to 'pkgs/generate.nix')
-rw-r--r-- | pkgs/generate.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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}/" |