diff --git a/pkgs/servers/samba/default.nix b/pkgs/servers/samba/default.nix index e8b1edc80e35..629ac2a31b80 100644 --- a/pkgs/servers/samba/default.nix +++ b/pkgs/servers/samba/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam]; configureFlags = ''--with-pam --with-smbmount --datadir=$out/share - --with-aio-support'' + --with-aio-support '' + (if (stdenv.gcc.libc != null) then "--with-libiconv=${stdenv.gcc.libc}" else ""); postUnpack = "sourceRoot=\$sourceRoot/source";