Skip to content

Commit

Permalink
polkit: rename misleading flag
Browse files Browse the repository at this point in the history
gobject-introspection has nothing to do with graphical systems or GNOME, it is needed for language bindings like Python.
  • Loading branch information
jtojnar committed Dec 1, 2019
1 parent 32b8c88 commit 4cb7f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/libraries/polkit/default.nix
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 4cb7f43

Please sign in to comment.