diff --git a/pkgs/servers/samba/default.nix b/pkgs/servers/samba/default.nix index 797f619782c..835781fc17e 100644 --- a/pkgs/servers/samba/default.nix +++ b/pkgs/servers/samba/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam]; configureFlags = ''--with-pam --with-smbmount --datadir=$out/share --with-aio-support '' - + (if stdenv.gcc ? libc then "--with-libiconv=${stdenv.gcc.libc}" else ""); + + (if (stdenv.gcc ? libc && stdenv.gcc.libc) then "--with-libiconv=${stdenv.gcc.libc}" else ""); postUnpack = "sourceRoot=\$sourceRoot/source"; postInstall = ''rm -rf $out/var ; ln -s /var/samba $out/var '';