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-19 15:11:05 +02:00
|
|
|
name = "gnutls-2.2.4";
|
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";
|
|
|
|
sha256 = "1k140912g78mvadr1ga0nm2qibdbb6llp2l60m35bwr90b5abz7x";
|
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]
|
|
|
|
++ (if guileBindings then [guile] else []);
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|