systemd: cleanup cryptsetup input

use lib.getDev to retrieve the dev output. Don't pass it to buildInputs
if we don't build with withCryptsetup set to true.
This commit is contained in:
Florian Klink 2020-10-27 23:52:28 +01:00
parent e1e01fa85e
commit 5f257d7d2c
2 changed files with 1 additions and 3 deletions

View File

@ -169,7 +169,6 @@ stdenv.mkDerivation {
acl
audit
bzip2
cryptsetup
glib
kmod
libapparmor
@ -191,7 +190,7 @@ stdenv.mkDerivation {
++ lib.optional withLibseccomp libseccomp
++ lib.optional withEfi gnu-efi
++ lib.optional withSelinux libselinux
++ lib.optional withCryptsetup cryptsetup.dev
++ lib.optional withCryptsetup (lib.getDev cryptsetup.dev)
;
#dontAddPrefix = true;

View File

@ -18671,7 +18671,6 @@ in
withEfi = false;
withImportd = false;
withCryptsetup = false;
cryptsetup = null;
glib = null;
lvm2 = null;
};