You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
773 B

  1. { pkgs ? (import ./.. { }), nixpkgs ? { }}:
  2. let
  3. lib = pkgs.lib;
  4. doc-support = import ./doc-support { inherit pkgs nixpkgs; };
  5. in pkgs.stdenv.mkDerivation {
  6. name = "nixpkgs-manual";
  7. buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing xmlformat ];
  8. src = ./.;
  9. postPatch = ''
  10. ln -s ${doc-support} ./doc-support/result
  11. '';
  12. installPhase = ''
  13. dest="$out/share/doc/nixpkgs"
  14. mkdir -p "$(dirname "$dest")"
  15. mv out/html "$dest"
  16. mv "$dest/index.html" "$dest/manual.html"
  17. mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
  18. mkdir -p $out/nix-support/
  19. echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
  20. echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
  21. '';
  22. }