systemd: add libgpgerror only to buildInputs if we build with resolved support

This commit is contained in:
Florian Klink 2020-10-28 01:22:23 +01:00
parent e6dff1d666
commit 065f057d0c

View file

@ -183,7 +183,6 @@ stdenv.mkDerivation {
libapparmor libapparmor
libcap libcap
libgcrypt libgcrypt
libgpgerror
libidn2 libidn2
libuuid libuuid
linuxHeaders linuxHeaders
@ -192,12 +191,13 @@ stdenv.mkDerivation {
] ]
++ lib.optional wantCurl (lib.getDev curl) ++ lib.optional wantCurl (lib.getDev curl)
++ lib.optionals withCompression [ bzip2 lz4 xz ] ++ lib.optionals withCompression [ bzip2 lz4 xz ]
++ lib.optional withNetworkd iptables ++ lib.optional withCryptsetup (lib.getDev cryptsetup.dev)
++ lib.optional withEfi gnu-efi
++ lib.optional withKexectools kexectools ++ lib.optional withKexectools kexectools
++ lib.optional withLibseccomp libseccomp ++ lib.optional withLibseccomp libseccomp
++ lib.optional withEfi gnu-efi ++ lib.optional withNetworkd iptables
++ lib.optional withResolved libgpgerror
++ lib.optional withSelinux libselinux ++ lib.optional withSelinux libselinux
++ lib.optional withCryptsetup (lib.getDev cryptsetup.dev)
; ;
#dontAddPrefix = true; #dontAddPrefix = true;