git.iko.soy/typeable/nixpkgs
on master help sign in
Fix alternative samba configuration evaluations
commit124a61f10d6c93440a9733b665ff6fdea2c90969 authorMichael Raskin <7c6f434c@mail.ru> dateSun 28 Jun 2015, 13:41 (11 years ago) parent3ff2dfb
1 file changed+4−2
pkgs/servers/samba/4.x.nix+4−2
pkgs/servers/samba/4.x.nix+4−2
@@ -61,11 +61,13 @@ stdenv.mkDerivation rec {
6161 "--enable-fhs"
6262 "--sysconfdir=/etc"
6363 "--localstatedir=/var"
64− "--bundled-libraries=${if enableKerberos && kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
64+ "--bundled-libraries=${if enableKerberos && kerberos != null &&
65+ kerberos.implementation == "heimdal" then "NONE" else "com_err"}"
6566 "--private-libraries=NONE"
6667 "--builtin-libraries=replace"
6768 ]
68− ++ optional (enableKerberos && kerberos.implementation == "krb5") "--with-system-mitkrb5"
69+ ++ optional (enableKerberos && kerberos != null &&
70+ kerberos.implementation == "krb5") "--with-system-mitkrb5"
6971 ++ optional (!enableDomainController) "--without-ad-dc"
7072 ++ optionals (!enableLDAP) [ "--without-ldap" "--without-ads" ];
7173