unbound: fix build with nettle-3.5

This commit is contained in:
Vladimír Čunát 2019-10-02 20:15:47 +02:00
parent 6153f6d89f
commit 96d65875f8
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "1ykdy62sgzv33ggkmzwx2h0ifm7hyyxyfkb4zckv7gz4f28xsm8v"; sha256 = "1ykdy62sgzv33ggkmzwx2h0ifm7hyyxyfkb4zckv7gz4f28xsm8v";
}; };
# https://github.com/NLnetLabs/unbound/pull/90
postPatch = ''
substituteInPlace validator/val_secalgo.c \
--replace '&nettle_secp_256r1' 'nettle_get_secp_256r1()' \
--replace '&nettle_secp_384r1' 'nettle_get_secp_384r1()'
'';
outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
buildInputs = [ openssl nettle expat libevent ]; buildInputs = [ openssl nettle expat libevent ];