diff options
author | Niklas Hambüchen <mail@nh2.me> | 2019-11-20 22:55:54 +0100 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2019-11-20 23:23:46 +0100 |
commit | 504199e48ade35b021156b0d939014d543441196 (patch) | |
tree | 12efae8938a0a1cf02e92916df210a500f2a994c /pkgs/development/libraries/polkit | |
parent | 86a760948b9066535265cfb1724fcbb87534259f (diff) |
polkit: Don't build elogind on non-Linux.
In #72057 I added support for elogind when systemd is not supported, but it occurred to me that it probably doens't make sense to have either of systemd or elogind on Darwin.
Diffstat (limited to 'pkgs/development/libraries/polkit')
-rw-r--r-- | pkgs/development/libraries/polkit/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/polkit/default.nix b/pkgs/development/libraries/polkit/default.nix index 05813bf29dcae..d0df41c3e5ff9 100644 --- a/pkgs/development/libraries/polkit/default.nix +++ b/pkgs/development/libraries/polkit/default.nix @@ -55,7 +55,8 @@ stdenv.mkDerivation rec { ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages buildInputs = [ expat pam spidermonkey_60 ] - ++ (if useSystemd then [systemd] else [elogind]) + # 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; propagatedBuildInputs = [ |