Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-20.03 28 lines 773 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 buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing xmlformat ]; 9 10 src = ./.; 11 12 postPatch = '' 13 ln -s ${doc-support} ./doc-support/result 14 ''; 15 16 installPhase = '' 17 dest="$out/share/doc/nixpkgs" 18 mkdir -p "$(dirname "$dest")" 19 mv out/html "$dest" 20 mv "$dest/index.html" "$dest/manual.html" 21 22 mv out/epub/manual.epub "$dest/nixpkgs-manual.epub" 23 24 mkdir -p $out/nix-support/ 25 echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products 26 echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products 27 ''; 28}