2014-12-30 08:32:41 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, flex, yacc, readline, openldap, libcap_ng
|
|
|
|
, sqlite, db, ncurses, openssl, cyrus_sasl
|
|
|
|
}:
|
2009-04-22 00:18:09 +01:00
|
|
|
|
2008-01-28 19:41:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-04 11:57:36 +00:00
|
|
|
name = "heimdal-1.5.3";
|
2008-01-28 19:41:25 +00:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"http://www.h5l.org/dist/src/${name}.tar.gz"
|
|
|
|
"http://ftp.pdc.kth.se/pub/heimdal/src/${name}.tar.gz"
|
|
|
|
];
|
2013-12-04 11:57:36 +00:00
|
|
|
sha256 = "19gypf9vzfrs2bw231qljfl4cqc1riyg0ai0xmm1nd1wngnpphma";
|
2009-04-22 00:18:09 +01:00
|
|
|
};
|
2008-01-28 19:41:25 +00:00
|
|
|
|
2009-04-22 00:18:09 +01:00
|
|
|
## ugly, X should be made an option
|
2010-08-06 09:52:47 +01:00
|
|
|
configureFlags = [
|
2015-01-01 16:18:50 +00:00
|
|
|
"--enable-hdb-openldap-module"
|
2014-12-30 08:32:41 +00:00
|
|
|
"--with-capng"
|
2010-08-06 09:52:47 +01:00
|
|
|
"--with-openldap=${openldap}"
|
|
|
|
"--with-sqlite3=${sqlite}"
|
2015-01-09 17:00:19 +00:00
|
|
|
"--with-openssl-lib=${openssl}/lib"
|
2010-08-06 09:52:47 +01:00
|
|
|
"--without-x"
|
|
|
|
];
|
2014-12-30 08:32:41 +00:00
|
|
|
|
2015-01-03 01:18:57 +00:00
|
|
|
# We need to build hcrypt for applications like samba
|
|
|
|
postBuild = ''
|
|
|
|
(cd lib/hcrypto; make)
|
|
|
|
(cd include/hcrypto; make)
|
|
|
|
'';
|
|
|
|
|
2010-08-06 09:52:47 +01:00
|
|
|
postInstall = ''
|
2015-01-03 01:18:57 +00:00
|
|
|
# Install hcrypto
|
|
|
|
(cd lib/hcrypto; make install)
|
|
|
|
(cd include/hcrypto; make install)
|
|
|
|
|
|
|
|
# dont succeed with --libexec=$out/sbin, so
|
2013-06-06 09:48:32 +01:00
|
|
|
mv "$out/libexec/"* $out/sbin/
|
2010-08-06 09:52:47 +01:00
|
|
|
rmdir $out/libexec
|
|
|
|
'';
|
|
|
|
|
2014-12-30 08:32:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig flex yacc readline openldap libcap_ng sqlite db ncurses
|
2015-01-09 17:00:19 +00:00
|
|
|
cyrus_sasl openssl
|
2014-12-30 08:32:41 +00:00
|
|
|
];
|
2014-08-08 16:58:34 +01:00
|
|
|
|
2014-12-30 08:32:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "an implementation of Kerberos 5 (and some more stuff) largely written in Sweden";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2014-08-08 16:58:34 +01:00
|
|
|
};
|
2008-01-28 19:41:25 +00:00
|
|
|
}
|