2008-04-09 09:30:05 +02:00
|
|
|
{ fetchurl, stdenv, zlib, lzo, libgcrypt
|
|
|
|
, guileBindings, guile }:
|
|
|
|
|
|
|
|
assert guileBindings -> guile != null;
|
|
|
|
|
2007-11-11 17:31:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-04-09 09:30:05 +02:00
|
|
|
|
2008-05-21 15:17:14 +02:00
|
|
|
name = "gnutls-2.2.5";
|
2008-04-09 09:30:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-19 15:11:05 +02:00
|
|
|
url = "mirror://gnu/gnutls/${name}.tar.bz2";
|
2008-05-21 15:17:14 +02:00
|
|
|
sha256 = "0mxf4pwv17lf4c2b3bh70wn35y9f45325am1ywkmw2azbfyqj9ng";
|
2008-04-09 09:30:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./tmpdir.patch ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix="$out" --enable-guile --with-guile-site-dir="$out/share/guile/site"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [zlib lzo libgcrypt]
|
2008-06-13 13:59:22 +02:00
|
|
|
++ stdenv.lib.optional guileBindings guile;
|
2008-04-09 09:30:05 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
2007-11-08 18:48:52 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The GNU Transport Layer Security Library";
|
|
|
|
homepage = http://www.gnu.org/software/gnutls/;
|
2008-04-09 09:30:05 +02:00
|
|
|
license = "LGPLv2.1+";
|
2007-11-08 18:48:52 +01:00
|
|
|
};
|
|
|
|
}
|