Merge commit staging+systemd into closure-size
Many non-conflict problems weren't (fully) resolved in this commit yet.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{ callPackage, fetchurl, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "3.2.21";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/gnutls-${version}.tar.lz";
|
||||
sha256 = "1xydzlwmf0frxvr26yw0ily5vwkdvf90m53fix61bi5gx4xd2m7m";
|
||||
};
|
||||
})
|
||||
@@ -1,10 +1,10 @@
|
||||
{ callPackage, fetchurl, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "3.3.14";
|
||||
version = "3.3.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${version}.tar.lz";
|
||||
sha256 = "1117j71ng66syddw10yazrniqkd326hcigx2hfcw4s86rk0kqanv";
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${version}.tar.xz";
|
||||
sha256 = "15ckyblhkap3d4sqw0dc9l8wdrnd2aj1fs9m0w0a3bfihvsfg1vs";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
{ callPackage, fetchurl, ... } @ args:
|
||||
{ callPackage, fetchurl, autoreconfHook, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "3.4.0";
|
||||
version = "3.4.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/gnutls-${version}.tar.lz";
|
||||
sha256 = "0mhym25ns3fhjd82p6g0aafhzbfkanryqbxvjy9mi25n2xpr1b95";
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/gnutls-${version}.tar.xz";
|
||||
sha256 = "1bks1zpmhmnkz2v32dd9b44pz6x0a5w4yi9zzwsd0a078vhbi25g";
|
||||
};
|
||||
|
||||
patches = [ ./install-fix.patch ];
|
||||
# This fixes some broken parallel dependencies
|
||||
postPatch = ''
|
||||
sed -i 's,^BUILT_SOURCES =,\0 systemkey-args.h,g' src/Makefile.am
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
})
|
||||
|
||||
@@ -1,21 +1,27 @@
|
||||
{ fetchurl, stdenv, autoreconfHook, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
|
||||
, guileBindings, guile, perl, gmp, libidn, p11_kit, unbound, trousers
|
||||
{ lib, fetchurl, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
|
||||
, guileBindings, guile, perl, gmp, autogen, libidn, p11_kit, unbound
|
||||
, tpmSupport ? false, trousers
|
||||
|
||||
# Version dependent args
|
||||
, version, src, patches ? []
|
||||
, version, src, patches ? [], postPatch ? "", nativeBuildInputs ? []
|
||||
, ...}:
|
||||
|
||||
assert guileBindings -> guile != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
name = "gnutls-${version}";
|
||||
|
||||
inherit src patches;
|
||||
inherit src patches postPatch;
|
||||
|
||||
configureFlags = [
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
configureFlags =
|
||||
# FIXME: perhaps use $SSL_CERT_FILE instead
|
||||
lib.optional stdenv.isLinux "--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt"
|
||||
++ [
|
||||
"--disable-dependency-tracking"
|
||||
"--enable-fast-install"
|
||||
] ++ stdenv.lib.optional guileBindings
|
||||
] ++ lib.optional guileBindings
|
||||
[ "--enable-guile" "--with-guile-site-dir=\${out}/share/guile/site" ];
|
||||
|
||||
# Build of the Guile bindings is not parallel-safe. See
|
||||
@@ -23,24 +29,28 @@ stdenv.mkDerivation rec {
|
||||
# for the actual fix.
|
||||
enableParallelBuilding = !guileBindings;
|
||||
|
||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp trousers unbound ]
|
||||
++ stdenv.lib.optional guileBindings guile;
|
||||
buildInputs = [ lzo lzip nettle libtasn1 libidn p11_kit zlib gmp autogen ]
|
||||
++ lib.optional (tpmSupport && stdenv.isLinux) trousers
|
||||
++ [ unbound ]
|
||||
++ lib.optional guileBindings guile;
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig autoreconfHook ];
|
||||
# AutoreconfHook is temporary until the patch lands upstream to fix
|
||||
# header file generation with parallel building
|
||||
nativeBuildInputs = [ perl pkgconfig ] ++ nativeBuildInputs;
|
||||
|
||||
# XXX: Gnulib's `test-select' fails on FreeBSD:
|
||||
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
|
||||
doCheck = (!stdenv.isFreeBSD && !stdenv.isDarwin);
|
||||
|
||||
# Fixup broken libtool and pkgconfig files
|
||||
preFixup = ''
|
||||
sed -e 's,-ltspi,-L${trousers}/lib -ltspi,' \
|
||||
preFixup = lib.optionalString (!stdenv.isDarwin) ''
|
||||
sed ${lib.optionalString tpmSupport "-e 's,-ltspi,-L${trousers}/lib -ltspi,'"} \
|
||||
-e 's,-lz,-L${zlib.out}/lib -lz,' \
|
||||
-e 's,-lgmp,-L${gmp}/lib -lgmp,' \
|
||||
-i $out/lib/libgnutls.la $out/lib/pkgconfig/gnutls.pc
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "The GNU Transport Layer Security Library";
|
||||
|
||||
longDescription = ''
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
|
||||
index 8e793d3..68de757 100644
|
||||
--- a/doc/manpages/Makefile.am
|
||||
+++ b/doc/manpages/Makefile.am
|
||||
@@ -134,11 +134,8 @@ APIMANS += gnutls_certificate_get_peers.3
|
||||
APIMANS += gnutls_certificate_get_peers_subkey_id.3
|
||||
APIMANS += gnutls_certificate_get_trust_list.3
|
||||
APIMANS += gnutls_certificate_get_verify_flags.3
|
||||
-APIMANS += gnutls_certificate_get_verify_flags.3
|
||||
-APIMANS += gnutls_certificate_get_x509_crt.3
|
||||
APIMANS += gnutls_certificate_get_x509_crt.3
|
||||
APIMANS += gnutls_certificate_get_x509_key.3
|
||||
-APIMANS += gnutls_certificate_get_x509_key.3
|
||||
APIMANS += gnutls_certificate_send_x509_rdn_sequence.3
|
||||
APIMANS += gnutls_certificate_server_set_request.3
|
||||
APIMANS += gnutls_certificate_set_dh_params.3
|
||||
@@ -1101,7 +1098,7 @@ compare-makefile:
|
||||
@echo "******************************************************************************"
|
||||
@echo "If the following step fails copy $(srcdir)/doc/manpages/tmp-compare-makefile to doc/manpages/Makefile.am"
|
||||
@echo "******************************************************************************"
|
||||
- FUNCS=`cat $(top_srcdir)/lib/includes/gnutls/*.h | $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d`; \
|
||||
+ FUNCS=`cat $(top_srcdir)/lib/includes/gnutls/*.h | $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d|uniq`; \
|
||||
MANS=""; \
|
||||
for i in $$FUNCS; do \
|
||||
MANS="$$MANS\nAPIMANS += $$i.3"; \
|
||||
--
|
||||
libgit2 0.21.4
|
||||
Reference in New Issue
Block a user