2012-01-18 21:53:01 +01:00
|
|
|
{ fetchurl, stdenv, zlib, lzo, libtasn1, nettle
|
2012-04-09 22:51:36 +02:00
|
|
|
, guileBindings, guile, perl, psmisc }:
|
2008-04-09 09:30:05 +02:00
|
|
|
|
|
|
|
assert guileBindings -> guile != null;
|
|
|
|
|
2007-11-11 17:31:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-04-09 09:30:05 +02:00
|
|
|
|
2012-04-09 22:51:36 +02:00
|
|
|
name = "gnutls-3.0.18";
|
2008-04-09 09:30:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-22 19:38:04 +02:00
|
|
|
url = "mirror://gnu/gnutls/${name}.tar.xz";
|
2012-04-09 22:51:36 +02:00
|
|
|
sha256 = "1ynqnj1j6rrzplk2i64dik34829r0y7lwk4qlvjx993q3mj7z863";
|
2008-04-09 09:30:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2011-12-02 07:21:27 +01:00
|
|
|
./configure --prefix="$out" \
|
2009-08-17 00:59:15 +02:00
|
|
|
--disable-dependency-tracking --enable-fast-install \
|
2011-08-22 19:38:04 +02:00
|
|
|
--without-p11-kit \
|
2009-11-06 23:44:23 +01:00
|
|
|
--with-lzo --with-libtasn1-prefix="${libtasn1}" \
|
2009-04-30 20:43:48 +02:00
|
|
|
${if guileBindings
|
|
|
|
then "--enable-guile --with-guile-site-dir=\"$out/share/guile/site\""
|
|
|
|
else ""}
|
2008-04-09 09:30:05 +02:00
|
|
|
'';
|
|
|
|
|
2011-10-25 19:53:44 +02:00
|
|
|
buildInputs = [ zlib lzo ]
|
2008-06-13 13:59:22 +02:00
|
|
|
++ stdenv.lib.optional guileBindings guile;
|
2008-04-09 09:30:05 +02:00
|
|
|
|
2012-01-18 21:53:01 +01:00
|
|
|
buildNativeInputs = [ perl ];
|
2011-10-25 19:53:44 +02:00
|
|
|
|
2011-08-22 19:38:29 +02:00
|
|
|
propagatedBuildInputs = [ nettle libtasn1 ];
|
2008-09-06 20:22:35 +02:00
|
|
|
|
2008-09-09 22:17:03 +02:00
|
|
|
doCheck = true;
|
2009-11-06 23:44:23 +01:00
|
|
|
|
2012-04-09 22:51:36 +02:00
|
|
|
postCheck =
|
|
|
|
# Kill a process that's left behind.
|
|
|
|
stdenv.lib.optionalString doCheck "${psmisc}/bin/killall mini-loss-time";
|
|
|
|
|
2007-11-08 18:48:52 +01:00
|
|
|
meta = {
|
|
|
|
description = "The GNU Transport Layer Security Library";
|
2008-06-27 20:18:38 +02:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GnuTLS is a project that aims to develop a library which
|
|
|
|
provides a secure layer, over a reliable transport
|
|
|
|
layer. Currently the GnuTLS library implements the proposed
|
|
|
|
standards by the IETF's TLS working group.
|
|
|
|
|
|
|
|
Quoting from the TLS protocol specification:
|
|
|
|
|
|
|
|
"The TLS protocol provides communications privacy over the
|
|
|
|
Internet. The protocol allows client/server applications to
|
|
|
|
communicate in a way that is designed to prevent eavesdropping,
|
|
|
|
tampering, or message forgery."
|
|
|
|
'';
|
|
|
|
|
2007-11-08 18:48:52 +01:00
|
|
|
homepage = http://www.gnu.org/software/gnutls/;
|
2008-04-09 09:30:05 +02:00
|
|
|
license = "LGPLv2.1+";
|
2009-08-17 00:59:15 +02:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2007-11-08 18:48:52 +01:00
|
|
|
};
|
|
|
|
}
|