From eb828c68317908bf044a2110fc1625d47893edcc Mon Sep 17 00:00:00 2001 From: xeji Date: Tue, 27 Mar 2018 01:24:46 +0200 Subject: [PATCH] systemd: add withSelinux option false by default, so no rebuild --- pkgs/os-specific/linux/systemd/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index a792283e70e..d0f35d6736d 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -10,6 +10,7 @@ , getent , hostPlatform , buildPackages +, withSelinux ? false, libselinux }: assert stdenv.isLinux; @@ -44,7 +45,7 @@ in stdenv.mkDerivation rec { iptables gnu-efi # This is actually native, but we already pull it from buildPackages pythonLxmlEnv - ]; + ] ++ stdenv.lib.optionals withSelinux [ libselinux ]; #dontAddPrefix = true;