@ -55,17 +55,18 @@
, kexectools
, bashInteractive
, withResolved ? true
, withLogind ? true
, withCryptsetup ? true
, withEfi ? stdenv . hostPlatform . isEfi
, withHostnamed ? true
, withHwdb ? true
, withImportd ? true
, withLocaled ? true
, withLogind ? true
, withNetworkd ? true
, withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway
, withResolved ? true
, withTimedated ? true
, withTimesyncd ? true
, withHwdb ? true
, withEfi ? stdenv . hostPlatform . isEfi
, withImportd ? true
, withCryptsetup ? true
# name argument
, pname ? " s y s t e m d "
@ -82,9 +83,13 @@ assert withImportd ->
( curl . dev != null && zlib != null && xz != null && libgcrypt != null
&& gnutar != null && gnupg != null ) ;
assert withRemote -> lib . getDev curl != null ;
assert withCryptsetup ->
( cryptsetup != null ) ;
let
wantCurl = withRemote || withImportd ;
version = " 2 4 6 . 6 " ;
in
stdenv . mkDerivation {
@ -165,7 +170,6 @@ stdenv.mkDerivation {
audit
bzip2
cryptsetup
curl . dev
glib
kmod
libapparmor
@ -181,6 +185,7 @@ stdenv.mkDerivation {
pcre2
xz
]
++ lib . optional wantCurl ( lib . getDev curl )
++ lib . optional withNetworkd iptables
++ lib . optional withKexectools kexectools
++ lib . optional withLibseccomp libseccomp
@ -216,7 +221,7 @@ stdenv.mkDerivation {
" - D c r y p t s e t u p = ${ lib . boolToString withCryptsetup } "
" - D p o r t a b l e d = f a l s e "
" - D h w d b = ${ lib . boolToString withHwdb } "
" - D r e m o t e = f a l s e "
" - D r e m o t e = ${ lib . boolToString withRemote } "
" - D s y s u s e r s = f a l s e "
" - D t i m e d a t e d = ${ lib . boolToString withTimedated } "
" - D t i m e s y n c d = ${ lib . boolToString withTimesyncd } "
@ -224,7 +229,7 @@ stdenv.mkDerivation {
" - D l o c a l e d = t r u e "
" - D r e s o l v e = ${ lib . boolToString withResolved } "
" - D s p l i t - u s r = f a l s e "
" - D l i b c u r l = t r u e "
" - D l i b c u r l = ${ lib . boolToString wantCurl } "
" - D l i b i d n = f a l s e "
" - D l i b i d n 2 = t r u e "
" - D q u o t a c h e c k = f a l s e "