diff --git a/pkgs/servers/samba/default.nix b/pkgs/servers/samba/default.nix index bde546aafd14..797f619782cd 100644 --- a/pkgs/servers/samba/default.nix +++ b/pkgs/servers/samba/default.nix @@ -10,7 +10,8 @@ stdenv.mkDerivation rec { buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam]; configureFlags = ''--with-pam --with-smbmount --datadir=$out/share - --with-aio-support --with-libiconv=${stdenv.gcc.libc}''; + --with-aio-support '' + + (if 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 '';