1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix
Matthew Bauer 76999cc40e treewide: remove aliases in nixpkgs
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.

Misc...

- qtikz: use libsForQt5.callPackage

  This ensures we get the right poppler.

- rewrites:

  docbook5_xsl -> docbook_xsl_ns
  docbook_xml_xslt -> docbook_xsl

diffpdf: fixup
2018-07-18 23:25:20 -04:00

34 lines
917 B
Nix

{
mkDerivation, lib,
extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns,
karchive, ki18n, qtbase,
perl, perlPackages
}:
mkDerivation {
name = "kdoctools";
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
nativeBuildInputs = [
extra-cmake-modules
# The build system insists on having native Perl.
perl perlPackages.URI
];
propagatedBuildInputs = [
# kdoctools at runtime actually needs Perl for the platform kdoctools is
# running on, not necessarily native perl.
perl perlPackages.URI
qtbase
];
buildInputs = [ karchive ki18n ];
outputs = [ "out" "dev" ];
patches = [ ./kdoctools-no-find-docbook-xml.patch ];
cmakeFlags = [
"-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook"
"-DDocBookXSL_DIR=${docbook_xsl_ns}/xml/xsl/docbook"
];
postFixup = ''
moveToOutput "share/doc" "$dev"
moveToOutput "share/man" "$dev"
'';
}