git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #74760 from NixOS/revert-74715-baloo/no-x-libs/polkit

Revert "environment.noXlibs: do not pull gobject-introspection"

commitd7cdd6b0907285c0101e7a7ddb9ea522749bc934 authorJan Tojnar <jtojnar@gmail.com> dateSun 1 Dec 2019, 02:34 (7 years ago) parenteabf2564cb7f43
2 files changed+3−4
nixos/modules/config/no-x-libs.nix−1 pkgs/development/libraries/polkit/default.nix+3−3
nixos/modules/config/no-x-libs.nix−1
@@ -35,7 +35,6 @@ with lib;
3535 networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; };
3636 networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; };
3737 gobject-introspection = super.gobject-introspection.override { x11Support = false; };
38− polkit = super.polkit.override { withGnome = false; };
3938 }));
4039 };
4140}
pkgs/development/libraries/polkit/default.nix+3−3
@@ -2,7 +2,7 @@
22, intltool, spidermonkey_60 , gobject-introspection, libxslt, docbook_xsl, dbus
33, docbook_xml_dtd_412, gtk-doc, coreutils
44, useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind
5−, withGnome ? true
5+, withIntrospection ? true
66# A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault).
77# Not yet investigated; it may be due to the "Make netgroup support optional"
88# patch not updating the tests correctly yet, or doing something wrong,
@@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
5757 [ expat pam spidermonkey_60 ]
5858 # On Linux, fall back to elogind when systemd support is off.
5959 ++ stdenv.lib.optional stdenv.isLinux (if useSystemd then systemd else elogind)
60− ++ stdenv.lib.optional withGnome gobject-introspection;
60+ ++ stdenv.lib.optional withIntrospection gobject-introspection;
6161
6262 propagatedBuildInputs = [
6363 glib # in .pc Requires
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
8686 "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
8787 "--with-polkitd-user=polkituser" #TODO? <nixos> config.ids.uids.polkituser
8888 "--with-os-type=NixOS" # not recognized but prevents impurities on non-NixOS
89− (if withGnome then "--enable-introspection" else "--disable-introspection")
89+ (if withIntrospection then "--enable-introspection" else "--disable-introspection")
9090 ] ++ stdenv.lib.optional (!doCheck) "--disable-test";
9191
9292 makeFlags = [