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 'shell.nix')
-rw-r--r-- | shell.nix | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -3,14 +3,18 @@ with import <nixpkgs> {}; 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 ]; } |