From 75b181e9b7640fa7ffa01707bd1949fcb49ff207 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Fri, 25 Jan 2008 14:16:40 +0000 Subject: [PATCH] Should fix building samba in impure environments svn path=/nixpkgs/branches/stdenv-updates/; revision=10296 --- pkgs/servers/samba/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 '';