Skip to content

Commit

Permalink
Merge pull request #325373 from risicle/ris-coredns-1.11.3
Browse files Browse the repository at this point in the history
coredns: 1.11.1 -> 1.11.3
  • Loading branch information
risicle authored Jul 10, 2024
2 parents b539810 + ceeb0dc commit e166a7b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkgs/servers/dns/coredns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
, buildGoModule
, fetchFromGitHub
, installShellFiles
, nixosTests
, externalPlugins ? []
, vendorHash ? "sha256-tp22jj6DNnYFQhtAFW2uLo10ty//dyNqIDH2egDgbOw="
, vendorHash ? "sha256-mp+0/DQTNsgAZTnLqcQq1HVLAfKr5vUGYSZlIvM7KpE="
}:

let
Expand All @@ -14,13 +15,13 @@ let
builtins.map ({name, repo, version}: "${repo}@${version}") attrs;
in buildGoModule rec {
pname = "coredns";
version = "1.11.1";
version = "1.11.3";

src = fetchFromGitHub {
owner = "coredns";
repo = "coredns";
rev = "v${version}";
sha256 = "sha256-XZoRN907PXNKV2iMn51H/lt8yPxhPupNfJ49Pymdm9Y=";
sha256 = "sha256-8LZMS1rAqEZ8k1IWSRkQ2O650oqHLP0P31T8oUeE4fw=";
};

inherit vendorHash;
Expand Down Expand Up @@ -64,12 +65,21 @@ in buildGoModule rec {
'' + lib.optionalString stdenv.isDarwin ''
# loopback interface is lo0 on macos
sed -E -i 's/\blo\b/lo0/' plugin/bind/setup_test.go
# test is apparently outdated but only exhibits this on darwin
substituteInPlace test/corefile_test.go \
--replace "TestCorefile1" "SkipCorefile1"
'';

postInstall = ''
installManPage man/*
'';

passthru.tests = {
kubernetes-single-node = nixosTests.kubernetes.dns-single-node;
kubernetes-multi-node = nixosTests.kubernetes.dns-multi-node;
};

meta = with lib; {
homepage = "https://coredns.io";
description = "DNS server that runs middleware";
Expand Down

0 comments on commit e166a7b

Please sign in to comment.