polkit: Don't build elogind on non-Linux. (#73837)

polkit: Don't build elogind on non-Linux.
This commit is contained in:
Jan Tojnar 2019-11-21 00:04:21 +01:00 committed by GitHub
commit e75c71869d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [