dbus: fix eval on BSD

audit and libapparmor are libraries for Linux kernel features, so they
should only be used on Linux, not excluded specifically for Darwin.
This commit is contained in:
Alyssa Ross 2021-06-07 12:45:00 +00:00
parent d7d0a67765
commit b223fa619e

View file

@ -67,7 +67,7 @@ stdenv.mkDerivation rec {
libICE
libSM
] ++ lib.optional enableSystemd systemd
++ lib.optionals (!stdenv.isDarwin) [ audit libapparmor ];
++ lib.optionals stdenv.isLinux [ audit libapparmor ];
# ToDo: optional selinux?
configureFlags = [
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
] ++ lib.optional (!x11Support) "--without-x"
++ lib.optionals (!stdenv.isDarwin) [ "--enable-apparmor" "--enable-libaudit" ];
++ lib.optionals stdenv.isLinux [ "--enable-apparmor" "--enable-libaudit" ];
# Enable X11 autolaunch support in libdbus. This doesn't actually depend on X11
# (it just execs dbus-launch in dbus.tools), contrary to what the configure script demands.