2017-05-15 18:05:35 +01:00
|
|
|
{
|
|
|
|
mkDerivation, lib,
|
2018-07-17 21:11:16 +01:00
|
|
|
extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns,
|
2017-05-22 19:49:07 +01:00
|
|
|
karchive, ki18n, qtbase,
|
|
|
|
perl, perlPackages
|
2016-04-21 16:32:21 +01:00
|
|
|
}:
|
|
|
|
|
2017-05-15 18:05:35 +01:00
|
|
|
mkDerivation {
|
2016-04-21 16:32:21 +01:00
|
|
|
name = "kdoctools";
|
2016-04-28 16:52:09 +01:00
|
|
|
meta = { maintainers = [ lib.maintainers.ttuegel ]; };
|
2017-12-24 23:26:27 +00:00
|
|
|
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
|
|
|
|
];
|
2017-05-22 19:49:07 +01:00
|
|
|
buildInputs = [ karchive ki18n ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
patches = [ ./kdoctools-no-find-docbook-xml.patch ];
|
2016-04-21 16:32:21 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook"
|
2018-07-17 21:11:16 +01:00
|
|
|
"-DDocBookXSL_DIR=${docbook_xsl_ns}/xml/xsl/docbook"
|
2016-04-21 16:32:21 +01:00
|
|
|
];
|
2017-05-22 19:49:07 +01:00
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "share/doc" "$dev"
|
|
|
|
moveToOutput "share/man" "$dev"
|
|
|
|
'';
|
2016-04-21 16:32:21 +01:00
|
|
|
}
|