samba4: Fix evaluation

http://hydra.nixos.org/build/20173661
This commit is contained in:
Eelco Dolstra 2015-03-06 13:12:33 +01:00
parent d8a5712ea0
commit f72ae4da79

View File

@ -90,7 +90,7 @@ stdenv.mkDerivation rec {
"--localstatedir=/var"
# buildtools/wafsamba/wscript options
"--bundled-libraries=${if kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
"--bundled-libraries=${if kerberos != null && kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
"--private-libraries=NONE"
"--builtin-libraries=replace"
] ++ (if libiconv != null then [ "--with-libiconv=${libiconv}" ] else [ ])
@ -101,7 +101,7 @@ stdenv.mkDerivation rec {
then [ "--enable-gnutls" ] else [ "--disable-gnutls" ]) ++ [
# wscript options
] ++ stdenv.lib.optional (kerberos.implementation == "krb5") "--with-system-mitkrb5"
] ++ stdenv.lib.optional (kerberos != null && kerberos.implementation == "krb5") "--with-system-mitkrb5"
++ stdenv.lib.optional (kerberos == null) "--without-ad-dc" ++ [
# ctdb/wscript