systemd: add withSelinux option

false by default, so no rebuild
This commit is contained in:
xeji 2018-03-27 01:24:46 +02:00
parent f7fe3f5184
commit eb828c6831

View File

@ -10,6 +10,7 @@
, getent , getent
, hostPlatform , hostPlatform
, buildPackages , buildPackages
, withSelinux ? false, libselinux
}: }:
assert stdenv.isLinux; assert stdenv.isLinux;
@ -44,7 +45,7 @@ in stdenv.mkDerivation rec {
iptables gnu-efi iptables gnu-efi
# This is actually native, but we already pull it from buildPackages # This is actually native, but we already pull it from buildPackages
pythonLxmlEnv pythonLxmlEnv
]; ] ++ stdenv.lib.optionals withSelinux [ libselinux ];
#dontAddPrefix = true; #dontAddPrefix = true;