udisks2: disable docs when cross-compiling

This commit is contained in:
Nick Spinale 2019-09-14 12:53:04 +00:00
parent e39d627a12
commit 101947774c

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sha256 = "01wx2x8xyal595dhdih7rva2bz7gqzgwdp56gi0ikjdzayx17wcf";
};
outputs = [ "out" "man" "dev" "devdoc" ];
outputs = [ "out" "man" "dev" ] ++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "devdoc";
patches = [
(substituteAll {
@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
configureFlags = [
"--enable-gtk-doc"
(stdenv.lib.enableFeature (stdenv.buildPlatform == stdenv.hostPlatform) "gtk-doc")
"--localstatedir=/var"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--with-udevdir=$(out)/lib/udev"