2015-06-02 12:35:28 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, flex, yacc, readline, openldap, libcap_ng
|
|
|
|
, sqlite, db, ncurses, openssl, cyrus_sasl
|
2014-12-30 11:32:41 +03:00
|
|
|
}:
|
2009-04-22 03:18:09 +04:00
|
|
|
|
2008-01-28 22:41:25 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-04 15:57:36 +04:00
|
|
|
name = "heimdal-1.5.3";
|
2008-01-28 22:41:25 +03:00
|
|
|
|
2009-04-22 03:18:09 +04: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 15:57:36 +04:00
|
|
|
sha256 = "19gypf9vzfrs2bw231qljfl4cqc1riyg0ai0xmm1nd1wngnpphma";
|
2009-04-22 03:18:09 +04:00
|
|
|
};
|
2008-01-28 22:41:25 +03:00
|
|
|
|
2015-06-02 12:35:28 +03:00
|
|
|
## ugly, X should be made an option
|
2010-08-06 12:52:47 +04:00
|
|
|
configureFlags = [
|
2015-06-02 12:35:28 +03:00
|
|
|
"--enable-hdb-openldap-module"
|
|
|
|
"--with-capng"
|
|
|
|
"--with-openldap=${openldap}"
|
|
|
|
"--with-sqlite3=${sqlite}"
|
|
|
|
"--with-openssl-lib=${openssl}/lib"
|
|
|
|
"--without-x"
|
2010-08-06 12:52:47 +04:00
|
|
|
];
|
2014-12-30 11:32:41 +03:00
|
|
|
|
2015-06-06 10:21:21 +03:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -pthread"
|
|
|
|
'';
|
|
|
|
|
2015-01-03 04:18:57 +03:00
|
|
|
# We need to build hcrypt for applications like samba
|
|
|
|
postBuild = ''
|
|
|
|
(cd lib/hcrypto; make)
|
|
|
|
(cd include/hcrypto; make)
|
|
|
|
'';
|
|
|
|
|
2010-08-06 12:52:47 +04:00
|
|
|
postInstall = ''
|
2015-01-03 04:18:57 +03:00
|
|
|
# Install hcrypto
|
|
|
|
(cd lib/hcrypto; make install)
|
|
|
|
(cd include/hcrypto; make install)
|
|
|
|
|
2015-06-02 12:35:28 +03:00
|
|
|
# dont succeed with --libexec=$out/sbin, so
|
2013-06-06 12:48:32 +04:00
|
|
|
mv "$out/libexec/"* $out/sbin/
|
2010-08-06 12:52:47 +04:00
|
|
|
rmdir $out/libexec
|
|
|
|
'';
|
|
|
|
|
2015-06-02 12:35:28 +03:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig flex yacc readline openldap libcap_ng sqlite db ncurses
|
|
|
|
cyrus_sasl openssl
|
|
|
|
];
|
|
|
|
|
2015-06-01 21:52:03 +03:00
|
|
|
meta = with stdenv.lib; {
|
2014-12-30 11:32:41 +03:00
|
|
|
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 19:58:34 +04:00
|
|
|
};
|
2015-03-05 03:48:20 +03:00
|
|
|
|
|
|
|
passthru.implementation = "heimdal";
|
2008-01-28 22:41:25 +03:00
|
|
|
}
|