unbound: backport fix for libunbound with nettle

Link: https://github.com/NixOS/nixpkgs/pull/252325#issuecomment-1731160655
Link: https://github.com/NLnetLabs/unbound/issues/942
Fixes: 44500c34d490 ("unbound: 1.17.1 -> 1.18.0")

+10
+10
pkgs/tools/networking/unbound/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchurl 4 + , fetchpatch 4 5 , openssl 5 6 , nettle 6 7 , expat ··· 54 55 url = "https://nlnetlabs.nl/downloads/unbound/unbound-${version}.tar.gz"; 55 56 hash = "sha256-PalUkKhc/2Qg8m+uC4Skn1ES3xvxt/w0+HJPAggstxI="; 56 57 }; 58 + 59 + patches = [ 60 + # Backport: fix libunbound with nettle. 61 + (fetchpatch { 62 + url = "https://github.com/NLnetLabs/unbound/commit/654a7eab62cbd1844d483cc4a0f2cf2fbcbaf00a.patch"; 63 + excludes = [ "doc/Changelog" ]; 64 + hash = "sha256-n3FCeZESFrrn6Wcf28Hb8WZs1eMHWjbsf2WCFOXU3lI="; 65 + }) 66 + ]; 57 67 58 68 outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB 59 69