1 { pkgs ? (import ./.. { }), nixpkgs ? { }}:
4 doc-support = import ./doc-support { inherit pkgs nixpkgs; };
5 in pkgs.stdenv.mkDerivation {
6 name = "nixpkgs-manual";
8 nativeBuildInputs = with pkgs; [
18 src = lib.cleanSource ./.;
21 ln -s ${doc-support} ./doc-support/result
25 dest="$out/share/doc/nixpkgs"
26 mkdir -p "$(dirname "$dest")"
28 mv "$dest/index.html" "$dest/manual.html"
30 mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
32 mkdir -p $out/nix-support/
33 echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
34 echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
37 # Environment variables
38 PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";