2008-04-09 07:30:05 +00:00
|
|
|
{ fetchurl, stdenv, zlib, lzo, libgcrypt
|
|
|
|
, guileBindings, guile }:
|
|
|
|
|
|
|
|
assert guileBindings -> guile != null;
|
|
|
|
|
2007-11-11 16:31:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-04-09 07:30:05 +00:00
|
|
|
|
2009-04-30 18:43:48 +00:00
|
|
|
name = "gnutls-2.6.6";
|
2008-04-09 07:30:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-19 13:11:05 +00:00
|
|
|
url = "mirror://gnu/gnutls/${name}.tar.bz2";
|
2009-04-30 18:43:48 +00:00
|
|
|
sha256 = "17nwmf7hfcjpwi1hmnkjjrygwn1wjripdf391is8ay6aa65mpn03";
|
2008-04-09 07:30:05 +00:00
|
|
|
};
|
|
|
|
|
2008-09-16 09:14:20 +00:00
|
|
|
patches = [ ./tmpdir.patch ];
|
2008-04-09 07:30:05 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
2009-04-30 18:43:48 +00:00
|
|
|
./configure --prefix="$out" \
|
|
|
|
${if guileBindings
|
|
|
|
then "--enable-guile --with-guile-site-dir=\"$out/share/guile/site\""
|
|
|
|
else ""}
|
2008-04-09 07:30:05 +00:00
|
|
|
'';
|
|
|
|
|
2008-09-06 18:22:35 +00:00
|
|
|
buildInputs = [zlib lzo]
|
2008-06-13 11:59:22 +00:00
|
|
|
++ stdenv.lib.optional guileBindings guile;
|
2008-04-09 07:30:05 +00:00
|
|
|
|
2008-09-06 18:22:35 +00:00
|
|
|
propagatedBuildInputs = [libgcrypt];
|
|
|
|
|
2008-09-09 20:17:03 +00:00
|
|
|
doCheck = true;
|
2007-11-08 17:48:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The GNU Transport Layer Security Library";
|
2008-06-27 18:18:38 +00: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 07:30:05 +00:00
|
|
|
license = "LGPLv2.1+";
|
2007-11-08 17:48:52 +00:00
|
|
|
};
|
|
|
|
}
|