diff options
Diffstat (limited to 'doc/default.nix')
-rw-r--r-- | doc/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/default.nix b/doc/default.nix index d9051167dee..ac382ec8519 100644 --- a/doc/default.nix +++ b/doc/default.nix @@ -5,9 +5,17 @@ let in pkgs.stdenv.mkDerivation { name = "nixpkgs-manual"; - buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing xmlformat ]; + nativeBuildInputs = with pkgs; [ + pandoc + graphviz + libxml2 + libxslt + zip + jing + xmlformat + ]; - src = ./.; + src = lib.cleanSource ./.; postPatch = '' ln -s ${doc-support} ./doc-support/result @@ -25,4 +33,7 @@ in pkgs.stdenv.mkDerivation { echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products ''; + + # Environment variables + PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters"; } |