tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge #306637: gnutls: 3.8.4 -> 3.8.5
...into staging
Vladimír Čunát
2 years ago
e1939b62
9b007532
+9
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
gnutls
default.nix
+9
-8
pkgs/development/libraries/gnutls/default.nix
···
44
44
, rsyslog
45
45
, openconnect
46
46
, samba
47
47
+
48
48
+
, gitUpdater
47
49
}:
48
50
49
51
let
···
58
60
59
61
stdenv.mkDerivation rec {
60
62
pname = "gnutls";
61
61
-
version = "3.8.4";
63
63
+
version = "3.8.5";
62
64
63
65
src = fetchurl {
64
66
url = "mirror://gnupg/gnutls/v${lib.versions.majorMinor version}/gnutls-${version}.tar.xz";
65
65
-
hash = "sha256-K+pOFUeU8/ABgPoqXFH+iwBax6Mc1YvUTN+n8268Ops=";
67
67
+
hash = "sha256-ZiaaLP4OHC2r7Ie9u9irZW85bt2aQN0AaXjgA8+lK/w=";
66
68
};
67
69
68
70
outputs = [ "bin" "dev" "out" ]
···
97
99
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
98
100
'' + lib.optionalString stdenv.hostPlatform.isMusl '' # See https://gitlab.com/gnutls/gnutls/-/issues/945
99
101
sed '2iecho "certtool tests skipped in musl build"\nexit 0' -i tests/cert-tests/certtool.sh
100
100
-
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
101
101
-
# Adapted from https://gitlab.com/gnutls/gnutls/-/commit/d214cd4570fb1559a20e941bb7ceac7df52e96d3
102
102
-
# Can be removed with 3.8.5+.
103
103
-
sed -i lib/nettle/backport/rsa-sign-tr.c -e \
104
104
-
'/^#include <nettle\/rsa\.h>/i\
105
105
-
#define nettle_rsa_compute_root_tr _gnutls_nettle_backport_rsa_compute_root_tr'
106
102
'';
107
103
108
104
preConfigure = "patchShebangs .";
···
152
148
substituteInPlace "$out/lib/libgnutls.la" \
153
149
--replace "-lunistring" ""
154
150
'';
151
151
+
152
152
+
153
153
+
passthru.updateScript = gitUpdater {
154
154
+
url = "https://gitlab.com/gnutls/gnutls.git";
155
155
+
};
155
156
156
157
passthru.tests = {
157
158
inherit ngtcp2-gnutls curlWithGnuTls ffmpeg emacs qemu knot-resolver samba openconnect;