2015-06-01 20:09:42 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, ncurses, yacc, openssl, openldap, bootstrap_cmds }:
|
2009-11-06 12:57:29 +00:00
|
|
|
|
|
|
|
let
|
2015-06-01 20:09:42 +01:00
|
|
|
pname = "krb5";
|
|
|
|
version = "1.13.1";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
webpage = http://web.mit.edu/kerberos/;
|
2015-05-28 08:53:47 +01:00
|
|
|
in
|
2015-06-01 20:09:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
inherit name;
|
2009-11-06 12:57:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-01 20:09:42 +01:00
|
|
|
url = "${webpage}dist/krb5/1.13/${name}-signed.tar";
|
|
|
|
sha256 = "0gk6jvr64rf6l4xcyxn8i3fr5d1j7dhqvwyv3vw2qdkzz7yjkxjd";
|
2009-11-06 12:57:29 +00:00
|
|
|
};
|
|
|
|
|
2015-06-01 20:09:42 +01:00
|
|
|
buildInputs = [ pkgconfig perl ncurses yacc openssl openldap ]
|
2015-04-06 20:21:43 +01:00
|
|
|
# Provides the mig command used by the build scripts
|
2015-06-01 20:09:42 +01:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin bootstrap_cmds ;
|
2009-11-06 12:57:29 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
tar -xf $src
|
2015-06-01 20:09:42 +01:00
|
|
|
tar -xzf ${name}.tar.gz
|
|
|
|
cd ${name}/src
|
2009-11-06 12:57:29 +00:00
|
|
|
'';
|
|
|
|
|
2015-06-01 20:09:42 +01:00
|
|
|
configureFlags = [ "--with-tcl=no" ];
|
2013-03-20 22:36:17 +00:00
|
|
|
|
2013-05-01 12:11:46 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-30 09:03:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-03-20 22:36:17 +00:00
|
|
|
description = "MIT Kerberos 5";
|
2015-06-01 20:09:42 +01:00
|
|
|
homepage = webpage;
|
2013-03-20 22:36:17 +00:00
|
|
|
license = "MPL";
|
2015-04-06 20:21:43 +01:00
|
|
|
platforms = platforms.unix;
|
2014-12-30 09:03:29 +00:00
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2009-11-06 12:57:29 +00:00
|
|
|
};
|
2015-03-05 00:48:20 +00:00
|
|
|
|
|
|
|
passthru.implementation = "krb5";
|
2015-06-01 20:09:42 +01:00
|
|
|
})
|