systemd: add withApparmor option

This commit is contained in:
Florian Klink 2020-10-28 01:26:24 +01:00
parent 065f057d0c
commit 93dcbbf69d
2 changed files with 3 additions and 1 deletions

View file

@ -55,6 +55,7 @@
, bashInteractive
, withAnalyze ? true
, withApparmor ? true
, withCoredump ? true
, withCompression ? true # adds bzip2, lz4 and xz
, withCryptsetup ? true
@ -180,7 +181,6 @@ stdenv.mkDerivation {
audit
glib
kmod
libapparmor
libcap
libgcrypt
libidn2
@ -189,6 +189,7 @@ stdenv.mkDerivation {
pam
pcre2
]
++ lib.optional withApparmor libapparmor
++ lib.optional wantCurl (lib.getDev curl)
++ lib.optionals withCompression [ bzip2 lz4 xz ]
++ lib.optional withCryptsetup (lib.getDev cryptsetup.dev)

View file

@ -18663,6 +18663,7 @@ in
systemdMinimal = systemd.override {
pname = "systemd-minimal";
withAnalyze = false;
withApparmor = false;
withCompression = false;
withCoredump = false;
withCryptsetup = false;