nixpkgs-suyu/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix
John Ericson e9a369b2c6 kdoctools: Perl is a propagated *run*-time dep
It was improperly classified a build-time dep to get around the
incorrect propagation logic that was in place before this PR.

Additionally fix some `kdoctools` usage were it is incorrectly used a
run-time dep.
2017-12-30 22:04:23 -05:00

33 lines
913 B
Nix

{
mkDerivation, lib,
extra-cmake-modules, docbook_xml_dtd_45, docbook5_xsl,
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=${docbook5_xsl}/xml/xsl/docbook"
];
postFixup = ''
moveToOutput "share/doc" "$dev"
moveToOutput "share/man" "$dev"
'';
}