at 23.05-pre 938 B view raw
1{ pkgs ? (import ./.. { }), nixpkgs ? { }}: 2let 3 lib = pkgs.lib; 4 doc-support = import ./doc-support { inherit pkgs nixpkgs; }; 5in pkgs.stdenv.mkDerivation { 6 name = "nixpkgs-manual"; 7 8 nativeBuildInputs = with pkgs; [ 9 pandoc 10 graphviz 11 libxml2 12 libxslt 13 zip 14 jing 15 xmlformat 16 ]; 17 18 src = lib.cleanSource ./.; 19 20 postPatch = '' 21 ln -s ${doc-support} ./doc-support/result 22 ''; 23 24 installPhase = '' 25 dest="$out/share/doc/nixpkgs" 26 mkdir -p "$(dirname "$dest")" 27 mv out/html "$dest" 28 mv "$dest/index.html" "$dest/manual.html" 29 30 mv out/epub/manual.epub "$dest/nixpkgs-manual.epub" 31 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 35 ''; 36 37 # Environment variables 38 PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters"; 39}