gnutls: 3.8.4 -> 3.8.5
While at it added a trivial updater. Changes: https://gitlab.com/gnutls/gnutls/-/blob/3.8.5/NEWS
This commit is contained in:
parent
cfe10a28af
commit
307ef900a9
|
@ -44,6 +44,8 @@
|
|||
, rsyslog
|
||||
, openconnect
|
||||
, samba
|
||||
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -58,11 +60,11 @@ in
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnutls";
|
||||
version = "3.8.4";
|
||||
version = "3.8.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnupg/gnutls/v${lib.versions.majorMinor version}/gnutls-${version}.tar.xz";
|
||||
hash = "sha256-K+pOFUeU8/ABgPoqXFH+iwBax6Mc1YvUTN+n8268Ops=";
|
||||
hash = "sha256-ZiaaLP4OHC2r7Ie9u9irZW85bt2aQN0AaXjgA8+lK/w=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" ]
|
||||
|
@ -97,12 +99,6 @@ stdenv.mkDerivation rec {
|
|||
sed 's:/usr/lib64/pkcs11/ /usr/lib/pkcs11/ /usr/lib/x86_64-linux-gnu/pkcs11/:`pkg-config --variable=p11_module_path p11-kit-1`:' -i tests/p11-kit-trust.sh
|
||||
'' + lib.optionalString stdenv.hostPlatform.isMusl '' # See https://gitlab.com/gnutls/gnutls/-/issues/945
|
||||
sed '2iecho "certtool tests skipped in musl build"\nexit 0' -i tests/cert-tests/certtool.sh
|
||||
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
# Adapted from https://gitlab.com/gnutls/gnutls/-/commit/d214cd4570fb1559a20e941bb7ceac7df52e96d3
|
||||
# Can be removed with 3.8.5+.
|
||||
sed -i lib/nettle/backport/rsa-sign-tr.c -e \
|
||||
'/^#include <nettle\/rsa\.h>/i\
|
||||
#define nettle_rsa_compute_root_tr _gnutls_nettle_backport_rsa_compute_root_tr'
|
||||
'';
|
||||
|
||||
preConfigure = "patchShebangs .";
|
||||
|
@ -153,6 +149,11 @@ stdenv.mkDerivation rec {
|
|||
--replace "-lunistring" ""
|
||||
'';
|
||||
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.com/gnutls/gnutls.git";
|
||||
};
|
||||
|
||||
passthru.tests = {
|
||||
inherit ngtcp2-gnutls curlWithGnuTls ffmpeg emacs qemu knot-resolver samba openconnect;
|
||||
inherit (ocamlPackages) ocamlnet;
|
||||
|
|
Loading…
Reference in New Issue
Block a user