From 0ea1446704b7f7add26b1970295d3d2825930315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 2 Sep 2024 14:28:48 +0200 Subject: [PATCH] knot-dns: 3.3.9 -> 3.4.0 https://www.knot-dns.cz/docs/latest/html/migration.html#upgrade-3-3-x-to-3-4-x https://gitlab.nic.cz/knot/knot-dns/-/releases/v3.4.0 --- pkgs/servers/dns/knot-dns/default.nix | 8 +++++--- pkgs/servers/dns/knot-dns/runtime-deps.patch | 7 +++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/dns/knot-dns/default.nix b/pkgs/servers/dns/knot-dns/default.nix index 12239f2f10df..e3926fe4947d 100644 --- a/pkgs/servers/dns/knot-dns/default.nix +++ b/pkgs/servers/dns/knot-dns/default.nix @@ -1,17 +1,18 @@ { lib, stdenv, fetchurl, pkg-config, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring , systemd, nettle, libedit, zlib, libiconv, libintl, libmaxminddb, libbpf, nghttp2, libmnl , ngtcp2-gnutls, xdp-tools +, sphinx , autoreconfHook , nixosTests, knot-resolver, knot-dns, runCommandLocal }: stdenv.mkDerivation rec { pname = "knot-dns"; - version = "3.3.9"; + version = "3.4.0"; src = fetchurl { url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"; - sha256 = "7cf2bd93bf487179aca1d2acf7b462dc269e769944c3ea73c7f9a4570dde86ab"; + sha256 = "2730b11398944faa5151c51b0655cf26631090343c303597814f2a57df424736"; }; outputs = [ "bin" "out" "dev" ]; @@ -29,7 +30,8 @@ stdenv.mkDerivation rec { ./runtime-deps.patch ]; - nativeBuildInputs = [ pkg-config autoreconfHook ]; + # FIXME: sphinx is needed for now to get man-pages + nativeBuildInputs = [ pkg-config autoreconfHook sphinx ]; buildInputs = [ gnutls liburcu libidn2 libunistring nettle libedit diff --git a/pkgs/servers/dns/knot-dns/runtime-deps.patch b/pkgs/servers/dns/knot-dns/runtime-deps.patch index 19fc9cd07b18..89dba415b3b9 100644 --- a/pkgs/servers/dns/knot-dns/runtime-deps.patch +++ b/pkgs/servers/dns/knot-dns/runtime-deps.patch @@ -5,10 +5,9 @@ but that contains also references like include paths. Filter these at least in a crude way (whole lines). --- a/configure.ac +++ b/configure.ac -@@ -766,5 +766,5 @@ result_msg_base=" Knot DNS $VERSION - --result_msg_esc=$(echo -n "$result_msg_base" | sed '$!s/$/\\n/' | tr -d '\n') -+result_msg_esc=$(echo -n "$result_msg_base" | grep -Fv "$NIX_STORE" | sed '$!s/$/\\n/' | tr -d '\n') +@@ -788,5 +788,5 @@ result_msg_base=" +-result_msg_esc=$(echo -n " Configure:$filtered_config_params\n$result_msg_base" | sed '$!s/$/\\n/' | tr -d '\n') ++result_msg_esc=$(echo -n " Configure:$filtered_config_params\n$result_msg_base" | grep -Fv "$NIX_STORE" | sed '$!s/$/\\n/' | tr -d '\n') AC_DEFINE_UNQUOTED([CONFIGURE_SUMMARY],["$result_msg_esc"],[Configure summary])