mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
e1aa8a713b
I am automatically a maintainer of all packages in the set, so there is not reason to mention me explicitly as the maintainer of every individual package.
33 lines
855 B
Nix
33 lines
855 B
Nix
{
|
|
mkDerivation,
|
|
extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns,
|
|
karchive, ki18n, qtbase,
|
|
perl, perlPackages
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "kdoctools";
|
|
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"
|
|
'';
|
|
}
|