nixpkgs/pkgs/servers/ldap/389/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2014-12-30 09:30:15 -08:00
{ stdenv, fetchurl, pkgconfig, perl, pam, nspr, nss, openldap, db, cyrus_sasl
2015-01-09 11:05:12 -08:00
, svrcore, icu, net_snmp, kerberos, pcre
2014-12-30 09:30:15 -08:00
}:
stdenv.mkDerivation rec {
name = "389-ds-base-1.3.3.5";
src = fetchurl {
url = "http://directory.fedoraproject.org/binaries/${name}.tar.bz2";
sha256 = "09w81salyr56njsvq9p96ijrrs0vwsczd43jf6384ylzj1jrxxl5";
};
buildInputs = [
pkgconfig perl pam nspr nss openldap db cyrus_sasl svrcore icu
2015-01-09 11:05:12 -08:00
net_snmp kerberos pcre
2014-12-30 09:30:15 -08:00
];
2015-01-09 11:05:12 -08:00
patches = [ ./no-etc.patch ];
2014-12-30 09:30:15 -08:00
configureFlags = [
"--sysconfdir=/etc"
2015-01-09 11:05:12 -08:00
"--localstatedir=/var"
2014-12-30 09:30:15 -08:00
"--with-openldap=${openldap}"
"--with-db=${db}"
"--with-sasl=${cyrus_sasl}"
"--with-netsnmp=${net_snmp}"
];
2015-01-09 11:05:12 -08:00
preInstall = ''
# The makefile doesn't create this directory for whatever reason
mkdir -p $out/lib/dirsrv
'';
2014-12-30 09:30:15 -08:00
meta = with stdenv.lib; {
homepage = https://directory.fedoraproject.org/;
description = "enterprise-class Open Source LDAP server for Linux";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
};
}