dbus: build manpages from xml

The `docbook_xml_dtd_44` and `docbook-xsl-nons` bits are necessary to
prevent `xmlto` from trying to use the network during the build.
This commit is contained in:
Scott Olson 2020-09-28 17:25:45 +01:00 committed by Alyssa Ross
parent e991a1ea1f
commit 721402352c

View File

@ -10,6 +10,9 @@
, libSM ? null
, x11Support ? (stdenv.isLinux || stdenv.isDarwin)
, dbus
, docbook_xml_dtd_44
, docbook-xsl-nons
, xmlto
}:
assert
@ -43,10 +46,13 @@ stdenv.mkDerivation rec {
--replace 'DBUS_DAEMONDIR"/dbus-daemon"' '"/run/current-system/sw/bin/dbus-daemon"'
'';
outputs = [ "out" "dev" "lib" "doc" ];
outputs = [ "out" "dev" "lib" "doc" "man" ];
nativeBuildInputs = [
pkgconfig
docbook_xml_dtd_44
docbook-xsl-nons
xmlto
];
propagatedBuildInputs = [
@ -63,6 +69,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--enable-user-session"
"--enable-xml-docs"
"--libexecdir=${placeholder ''out''}/libexec"
"--datadir=/etc"
"--localstatedir=/var"