summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-12-01 02:12:43 +0100
committerJan Tojnar <jtojnar@gmail.com>2019-12-01 02:18:00 +0100
commit4cb7f43d3a96f9d7132cb422be17626e3d5f44f7 (patch)
tree34857b4f8e5c861fabf2b86b247f5d82b210d27e
parent32b8c88ce4e37febc7b9e3d44c370921a2fa7ee6 (diff)
downloadnixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar.gz
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar.bz2
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar.lz
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar.xz
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.tar.zst
nixpkgs-4cb7f43d3a96f9d7132cb422be17626e3d5f44f7.zip
polkit: rename misleading flag
gobject-introspection has nothing to do with graphical systems or GNOME, it is needed for language bindings like Python.
-rw-r--r--pkgs/development/libraries/polkit/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix
index d0df41c3e5f..17163c2206c 100644
--- a/pkgs/development/libraries/polkit/default.nix
+++ b/pkgs/development/libraries/polkit/default.nix
@@ -2,7 +2,7 @@
 , intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
 , docbook_xml_dtd_412, gtk-doc, coreutils
 , useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind
-, withGnome ? true
+, withIntrospection ? true
 # 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,
@@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
     [ expat pam spidermonkey_60 ]
     # On Linux, fall back to elogind when systemd support is off.
     ++ stdenv.lib.optional stdenv.isLinux (if useSystemd then systemd else elogind)
-    ++ stdenv.lib.optional withGnome gobject-introspection;
+    ++ stdenv.lib.optional withIntrospection gobject-introspection;
 
   propagatedBuildInputs = [
     glib # in .pc Requires
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
     "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
     "--with-polkitd-user=polkituser" #TODO? <nixos> config.ids.uids.polkituser
     "--with-os-type=NixOS" # not recognized but prevents impurities on non-NixOS
-    (if withGnome then "--enable-introspection" else "--disable-introspection")
+    (if withIntrospection then "--enable-introspection" else "--disable-introspection")
   ] ++ stdenv.lib.optional (!doCheck) "--disable-test";
 
   makeFlags = [