From a72644f12857fe0720b193e11b31a0957cbbbff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 24 Jan 2024 10:14:56 +0100 Subject: [PATCH 1/2] knot-dns: 3.3.3 -> 3.3.4 https://gitlab.nic.cz/knot/knot-dns/-/releases/v3.3.4 --- pkgs/servers/dns/knot-dns/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/dns/knot-dns/default.nix b/pkgs/servers/dns/knot-dns/default.nix index 41da27f2baa1..9e73c026b3f1 100644 --- a/pkgs/servers/dns/knot-dns/default.nix +++ b/pkgs/servers/dns/knot-dns/default.nix @@ -7,11 +7,11 @@ stdenv.mkDerivation rec { pname = "knot-dns"; - version = "3.3.3"; + version = "3.3.4"; src = fetchurl { url = "https://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"; - sha256 = "aab40aab2acd735c500f296bacaa5c84ff0488221a4068ce9946e973beacc5ae"; + sha256 = "2a771b43ce96b6b48d53b29f2086528732e6ac067bc71a3be934f859d1302fc0"; }; outputs = [ "bin" "out" "dev" ]; @@ -46,9 +46,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - CFLAGS = [ "-O2" "-DNDEBUG" ] - # https://gitlab.nic.cz/knot/knot-dns/-/issues/909 - ++ lib.optional stdenv.isDarwin "-D__APPLE_USE_RFC_3542"; + CFLAGS = [ "-O2" "-DNDEBUG" ]; doCheck = true; checkFlags = [ "V=1" ]; # verbose output in case some test fails From 7f979aeb86f2b3a31e02f06ce25496ebaaa2db38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 24 Jan 2024 10:33:55 +0100 Subject: [PATCH 2/2] nixos/knot: allow specifying the `clear` section It was added in 3.3.4. I'm not sure if it will be useful with NixOS services, but I added it in the usual way anyway. --- nixos/modules/services/networking/knot.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/knot.nix b/nixos/modules/services/networking/knot.nix index d4bd81629c97..94c32586736a 100644 --- a/nixos/modules/services/networking/knot.nix +++ b/nixos/modules/services/networking/knot.nix @@ -44,6 +44,7 @@ let ++ [ (sec_list_fa "id" nix_def "template") ] ++ [ (sec_list_fa "domain" nix_def "zone") ] ++ [ (sec_plain nix_def "include") ] + ++ [ (sec_plain nix_def "clear") ] ); # A plain section contains directly attributes (we don't really check that ATM).