diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-12-01 02:34:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 02:34:11 +0100 |
commit | d7cdd6b0907285c0101e7a7ddb9ea522749bc934 (patch) | |
tree | 48ecf6f37685d0acfa8ab9cd23754f156149d948 | |
parent | eabf256408a7cd3f5f0bc41ade9cb18b83855d36 (diff) | |
parent | 4cb7f43d3a96f9d7132cb422be17626e3d5f44f7 (diff) |
Merge pull request #74760 from NixOS/revert-74715-baloo/no-x-libs/polkit
Revert "environment.noXlibs: do not pull gobject-introspection"
-rw-r--r-- | nixos/modules/config/no-x-libs.nix | 1 | ||||
-rw-r--r-- | pkgs/development/libraries/polkit/default.nix | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix index d0f62d05870a6..873b8073fed9c 100644 --- a/nixos/modules/config/no-x-libs.nix +++ b/nixos/modules/config/no-x-libs.nix @@ -35,7 +35,6 @@ with lib; networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; }; networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; }; gobject-introspection = super.gobject-introspection.override { x11Support = false; }; - polkit = super.polkit.override { withGnome = false; }; })); }; } diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix index d0df41c3e5ff9..17163c2206cdd 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 = [ |