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.
launchpad/nixpkgs/master
Alyssa Ross 3 years ago
parent d7d0a67765
commit b223fa619e
  1. 4
      pkgs/development/libraries/dbus/default.nix

@ -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…
Cancel
Save