unbound: use lib.optionalString

This commit is contained in:
Sandro Jäckel 2021-10-18 16:13:14 +02:00
parent 8c692a36b9
commit bf60e5144c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -82,7 +82,7 @@ stdenv.mkDerivation rec {
"--with-libhiredis=${hiredis}"
];
PROTOC_C = if withDNSTAP then "${protobufc}/bin/protoc-c" else null;
PROTOC_C = lib.optionalString withDNSTAP "${protobufc}/bin/protoc-c";
# Remove references to compile-time dependencies that are included in the configure flags
postConfigure = let