2011-08-22 18:38:04 +01:00
|
|
|
{ fetchurl, stdenv, xz, zlib, lzo, libtasn1, nettle
|
2011-04-13 03:02:11 +01:00
|
|
|
, guileBindings, guile }:
|
2008-04-09 08:30:05 +01:00
|
|
|
|
|
|
|
assert guileBindings -> guile != null;
|
|
|
|
|
2007-11-11 16:31:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-04-09 08:30:05 +01:00
|
|
|
|
2011-09-05 00:05:42 +01:00
|
|
|
name = "gnutls-3.0.2";
|
2008-04-09 08:30:05 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-22 18:38:04 +01:00
|
|
|
url = "mirror://gnu/gnutls/${name}.tar.xz";
|
2011-09-05 00:05:42 +01:00
|
|
|
sha256 = "0jy0j77inv6yr7s9mnhs5kvjjmhj0ifg35145s1qn3hd9ma36nii";
|
2008-04-09 08:30:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2009-08-16 23:59:15 +01:00
|
|
|
./configure --prefix="$out" \
|
|
|
|
--disable-dependency-tracking --enable-fast-install \
|
2011-08-22 18:38:04 +01:00
|
|
|
--without-p11-kit \
|
2009-11-06 22:44:23 +00:00
|
|
|
--with-lzo --with-libtasn1-prefix="${libtasn1}" \
|
2009-04-30 19:43:48 +01:00
|
|
|
${if guileBindings
|
|
|
|
then "--enable-guile --with-guile-site-dir=\"$out/share/guile/site\""
|
|
|
|
else ""}
|
2008-04-09 08:30:05 +01:00
|
|
|
'';
|
|
|
|
|
2011-08-22 18:38:29 +01:00
|
|
|
buildInputs = [ xz zlib lzo ]
|
2008-06-13 12:59:22 +01:00
|
|
|
++ stdenv.lib.optional guileBindings guile;
|
2008-04-09 08:30:05 +01:00
|
|
|
|
2011-08-22 18:38:29 +01:00
|
|
|
propagatedBuildInputs = [ nettle libtasn1 ];
|
2008-09-06 19:22:35 +01:00
|
|
|
|
2008-09-09 21:17:03 +01:00
|
|
|
doCheck = true;
|
2009-11-06 22:44:23 +00:00
|
|
|
|
2007-11-08 17:48:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "The GNU Transport Layer Security Library";
|
2008-06-27 19:18:38 +01: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 17:48:52 +00:00
|
|
|
homepage = http://www.gnu.org/software/gnutls/;
|
2008-04-09 08:30:05 +01:00
|
|
|
license = "LGPLv2.1+";
|
2009-08-16 23:59:15 +01:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2007-11-08 17:48:52 +00:00
|
|
|
};
|
|
|
|
}
|