summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd/default.nix
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-03-27 01:24:46 +0200
committerxeji <xeji@cat3.de>2018-03-27 01:24:46 +0200
commiteb828c68317908bf044a2110fc1625d47893edcc (patch)
tree812df83a789c754b62833c05d65fc14a4460794d /pkgs/os-specific/linux/systemd/default.nix
parentf7fe3f51840d6d978cb644ce209ce3466de480eb (diff)
downloadnixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar.gz
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar.bz2
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar.lz
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar.xz
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.tar.zst
nixpkgs-eb828c68317908bf044a2110fc1625d47893edcc.zip
systemd: add withSelinux option
false by default, so no rebuild
Diffstat (limited to 'pkgs/os-specific/linux/systemd/default.nix')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix3
1 files changed, 2 insertions, 1 deletions
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;