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
|
|
|
|
2008-05-21 13:17:14 +00:00
|
|
|
name = "gnutls-2.2.5";
|
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";
|
2008-05-21 13:17:14 +00:00
|
|
|
sha256 = "0mxf4pwv17lf4c2b3bh70wn35y9f45325am1ywkmw2azbfyqj9ng";
|
2008-04-09 07:30:05 +00: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 11:59:22 +00:00
|
|
|
++ stdenv.lib.optional guileBindings guile;
|
2008-04-09 07:30:05 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2007-11-08 17:48:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The GNU Transport Layer Security Library";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|