3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/samba/default.nix
Eelco Dolstra 8d44988427 * Samba updated to 3.3.3. Don't install SWAT - it's not very useful
on NixOS.

svn path=/nixpkgs/trunk/; revision=14880
2009-04-04 00:59:55 +00:00

32 lines
797 B
Nix

{ stdenv, fetchurl, readline, pam, openldap, kerberos, popt
, iniparser, libunwind, fam, acl
}:
stdenv.mkDerivation rec {
name = "samba-3.3.3";
src = fetchurl {
url = "http://us3.samba.org/samba/ftp/stable/${name}.tar.gz";
sha256 = "08x3ng7ls5c1a95v7djx362i55wdlmnvarpr7rhng5bb55s9n5qn";
};
buildInputs = [readline pam openldap kerberos popt iniparser libunwind fam acl];
preConfigure = "cd source";
# Provide a dummy smb.conf to shut up programs like smbclient and smbspool.
postInstall = ''
touch $out/lib/smb.conf
'';
configureFlags = ''
--with-pam
--with-cifsmount
--with-aio-support
--with-pam_smbpass
--disable-swat
--enable-shared-libs
${if stdenv.gcc.libc != null then "--with-libiconv=${stdenv.gcc.libc}" else ""}
'';
}