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:
parent
d7d0a67765
commit
b223fa619e
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue