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. --- shell.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 706a893..81fb80a 100644 --- a/shell.nix +++ b/shell.nix @@ -3,14 +3,18 @@ with import {}; stdenv.mkDerivation rec { name = "env"; env = buildEnv { name = name; paths = buildInputs; }; + buildInputs = let - InputXSLT = callPackage ./pkgs/InputXSLT.nix {}; - KaTeX = callPackage ./pkgs/KaTeX.nix {}; + InputXSLT = pkgs.callPackage ./pkgs/InputXSLT.nix {}; + KaTeX = pkgs.callPackage ./pkgs/KaTeX.nix {}; + generate = pkgs.callPackage ./pkgs/generate.nix {}; + preview = pkgs.callPackage ./pkgs/preview.nix {}; in [ + generate + preview InputXSLT pandoc - highlight KaTeX - python3 + highlight ]; } -- cgit v1.2.3