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
|
|
|
|
|
|
|
name = "gnutls-2.3.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/releases/${name}.tar.bz2";
|
|
|
|
sha256 = "0n1pq40yl3ali17gkfzd2ad3xb9qrwx67affsqgssqffgmljq63j";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|