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
, 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;