about summary refs log tree commit diff
path: root/pkgs/development/libraries/polkit
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-01-01 22:06:07 +0100
committerFlorian Klink <flokli@flokli.de>2021-01-01 23:11:53 +0100
commit4f087a608eb7f4778c1c20d7089be83b33e2a625 (patch)
treeb6709e9e981c9d3e36fab3c1949a389a3ea7318a /pkgs/development/libraries/polkit
parentc0a93616873708f710ecd2ced2cf4fcc75f287bd (diff)
polkit: don't build with gobject-introspection when cross-compiling
gobject-introspection doesn't currently cross-compile (see
https://github.com/NixOS/nixpkgs/pull/88222), but polkit is somewhat
essential for many system components.

By disabling gobject-introspection when cross-compiling, we get it to
build.
Diffstat (limited to 'pkgs/development/libraries/polkit')
-rw-r--r--pkgs/development/libraries/polkit/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix
index 6aea70530143e..2ec49a2d3c088 100644
--- a/pkgs/development/libraries/polkit/default.nix
+++ b/pkgs/development/libraries/polkit/default.nix
@@ -2,7 +2,8 @@
 , intltool, spidermonkey_78, gobject-introspection, libxslt, docbook_xsl, dbus
 , docbook_xml_dtd_412, gtk-doc, coreutils
 , useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind
-, withIntrospection ? true
+# needed until gobject-introspection does cross-compile (https://github.com/NixOS/nixpkgs/pull/88222)
+, withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform)
 # A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault).
 # Not yet investigated; it may be due to the "Make netgroup support optional"
 # patch not updating the tests correctly yet, or doing something wrong,