nixpkgs/pkgs/servers/dns/coredns/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
858 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2016-09-22 00:44:32 +02:00
2019-12-16 13:05:23 +01:00
buildGoModule rec {
pname = "coredns";
2022-03-12 06:23:45 +01:00
version = "1.9.1";
2016-09-22 00:44:32 +02:00
src = fetchFromGitHub {
2019-01-30 12:50:31 +01:00
owner = "coredns";
2016-09-22 00:44:32 +02:00
repo = "coredns";
rev = "v${version}";
2022-03-12 06:23:45 +01:00
sha256 = "sha256-1lJrbazEgsRHI10qIgA9KgglsxpnMIdxEWpu6RiJ0pQ=";
2016-09-22 00:44:32 +02:00
};
2022-03-12 06:23:45 +01:00
vendorSha256 = "sha256-ueEuduZ76FUs2wE8oiHGON9+s91jaHhS6gOKr7MNh8g=";
2016-09-22 00:44:32 +02:00
2022-03-16 14:42:28 +01:00
postPatch = ''
substituteInPlace test/file_cname_proxy_test.go \
--replace "TestZoneExternalCNAMELookupWithProxy" \
"SkipZoneExternalCNAMELookupWithProxy"
substituteInPlace test/readme_test.go \
--replace "TestReadme" "SkipReadme"
'';
meta = with lib; {
2019-12-16 13:05:23 +01:00
homepage = "https://coredns.io";
2016-09-22 00:44:32 +02:00
description = "A DNS server that runs middleware";
license = licenses.asl20;
2022-03-16 14:42:28 +01:00
maintainers = with maintainers; [ rushmorem rtreffer deltaevo superherointj ];
2016-09-22 00:44:32 +02:00
};
}