coredns: 1.11.3 -> 1.12.2 (#416006)

authored by Gaétan Lepage and committed by GitHub 4e806e6f 99bf3d66

+20 -16
+20 -16
pkgs/by-name/co/coredns/package.nix
··· 6 6 installShellFiles, 7 7 nixosTests, 8 8 externalPlugins ? [ ], 9 - vendorHash ? "sha256-mp+0/DQTNsgAZTnLqcQq1HVLAfKr5vUGYSZlIvM7KpE=", 9 + vendorHash ? "sha256-Es3xy8NVDo7Xgu32jJa4lhYWGa5hJnRyDKFYQqB3aBY=", 10 10 }: 11 11 12 12 let 13 13 attrsToSources = attrs: builtins.map ({ repo, version, ... }: "${repo}@${version}") attrs; 14 14 in 15 - buildGoModule rec { 15 + buildGoModule (finalAttrs: { 16 16 pname = "coredns"; 17 - version = "1.11.3"; 17 + version = "1.12.2"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "coredns"; 21 21 repo = "coredns"; 22 - rev = "v${version}"; 23 - sha256 = "sha256-8LZMS1rAqEZ8k1IWSRkQ2O650oqHLP0P31T8oUeE4fw="; 22 + tag = "v${finalAttrs.version}"; 23 + hash = "sha256-P4GhWrEACR1ZhNhGAoXWvNXYlpwnm2dz6Ggqv72zYog="; 24 24 }; 25 25 26 26 inherit vendorHash; ··· 95 95 postPatch = 96 96 '' 97 97 substituteInPlace test/file_cname_proxy_test.go \ 98 - --replace "TestZoneExternalCNAMELookupWithProxy" \ 99 - "SkipZoneExternalCNAMELookupWithProxy" 98 + --replace-fail \ 99 + "TestZoneExternalCNAMELookupWithProxy" \ 100 + "SkipZoneExternalCNAMELookupWithProxy" 100 101 101 102 substituteInPlace test/readme_test.go \ 102 - --replace "TestReadme" "SkipReadme" 103 + --replace-fail "TestReadme" "SkipReadme" 103 104 104 105 # this test fails if any external plugins were imported. 105 106 # it's a lint rather than a test of functionality, so it's safe to disable. 106 107 substituteInPlace test/presubmit_test.go \ 107 - --replace "TestImportOrdering" "SkipImportOrdering" 108 + --replace-fail "TestImportOrdering" "SkipImportOrdering" 108 109 '' 109 110 + lib.optionalString stdenv.hostPlatform.isDarwin '' 110 111 # loopback interface is lo0 on macos ··· 112 113 113 114 # test is apparently outdated but only exhibits this on darwin 114 115 substituteInPlace test/corefile_test.go \ 115 - --replace "TestCorefile1" "SkipCorefile1" 116 + --replace-fail "TestCorefile1" "SkipCorefile1" 116 117 ''; 118 + 119 + __darwinAllowLocalNetworking = true; 117 120 118 121 postInstall = '' 119 122 installManPage man/* ··· 124 127 kubernetes-multi-node = nixosTests.kubernetes.dns-multi-node; 125 128 }; 126 129 127 - meta = with lib; { 130 + meta = { 128 131 homepage = "https://coredns.io"; 129 132 description = "DNS server that runs middleware"; 130 133 mainProgram = "coredns"; 131 - license = licenses.asl20; 132 - maintainers = with maintainers; [ 134 + license = lib.licenses.asl20; 135 + maintainers = with lib.maintainers; [ 136 + deltaevo 137 + djds 138 + rtreffer 133 139 rushmorem 134 - rtreffer 135 - deltaevo 136 140 ]; 137 141 }; 138 - } 142 + })