GnuTLS 2.8.5, with LZO support, and with external libtasn1.
svn path=/nixpkgs/trunk/; revision=18233
This commit is contained in:
parent
1c8f15b0aa
commit
a7faea338c
@ -1,32 +1,35 @@
|
||||
{ fetchurl, stdenv, zlib, lzo, libgcrypt
|
||||
{ fetchurl, stdenv, zlib, lzo, libtasn1, libgcrypt
|
||||
, guileBindings, guile }:
|
||||
|
||||
assert guileBindings -> guile != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "gnutls-2.8.4";
|
||||
name = "gnutls-2.8.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/gnutls/${name}.tar.bz2";
|
||||
sha256 = "175qn6m9h5mj77qa0wf3v290cf4ya9z1r01kgg1zz8gpbmxz98a4";
|
||||
sha256 = "1s6a2plds995q8rb8x19rz3c8v6xfqc4wvqqw01f6l8myyfw4jcj";
|
||||
};
|
||||
|
||||
patches = [ ./gnutls-cli-libgcrypt.patch ];
|
||||
|
||||
configurePhase = ''
|
||||
./configure --prefix="$out" \
|
||||
--disable-dependency-tracking --enable-fast-install \
|
||||
--with-lzo --with-libtasn1-prefix="${libtasn1}" \
|
||||
${if guileBindings
|
||||
then "--enable-guile --with-guile-site-dir=\"$out/share/guile/site\""
|
||||
else ""}
|
||||
'';
|
||||
|
||||
buildInputs = [zlib lzo]
|
||||
buildInputs = [ zlib lzo libtasn1 ]
|
||||
++ stdenv.lib.optional guileBindings guile;
|
||||
|
||||
propagatedBuildInputs = [libgcrypt];
|
||||
propagatedBuildInputs = [ libgcrypt ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
meta = {
|
||||
description = "The GNU Transport Layer Security Library";
|
||||
|
||||
|
14
pkgs/development/libraries/gnutls/gnutls-cli-libgcrypt.patch
Normal file
14
pkgs/development/libraries/gnutls/gnutls-cli-libgcrypt.patch
Normal file
@ -0,0 +1,14 @@
|
||||
This patch is to make sure `gnutls-cli' is explicitly linked against
|
||||
libgcrypt since it really needs to.
|
||||
|
||||
--- gnutls-2.8.5/src/Makefile.in 2009-11-02 11:36:01.000000000 +0100
|
||||
+++ gnutls-2.8.5/src/Makefile.in 2009-11-06 23:30:42.000000000 +0100
|
||||
@@ -840,6 +840,7 @@ libcmd_psk_la_CFLAGS =
|
||||
libcmd_psk_la_SOURCES = psk.gaa psk-gaa.h psk-gaa.c
|
||||
gnutls_cli_SOURCES = cli.c common.h common.c
|
||||
gnutls_cli_LDADD = ../lib/libgnutls.la ../libextra/libgnutls-extra.la \
|
||||
+ -lgcrypt \
|
||||
libcmd-cli.la ../gl/libgnu.la $(LIBSOCKET) $(GETADDRINFO_LIB)
|
||||
libcmd_cli_la_CFLAGS =
|
||||
libcmd_cli_la_SOURCES = cli.gaa cli-gaa.h cli-gaa.c
|
||||
|
@ -3533,7 +3533,7 @@ let
|
||||
};
|
||||
|
||||
gnutls = import ../development/libraries/gnutls {
|
||||
inherit fetchurl stdenv libgcrypt zlib lzo guile;
|
||||
inherit fetchurl stdenv libgcrypt zlib lzo libtasn1 guile;
|
||||
guileBindings = getConfig ["gnutls" "guile"] true;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user