2022-05-25 22:45:19 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2016-09-21 23:44:32 +01:00
|
|
|
|
2019-12-16 12:05:23 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "coredns";
|
2022-09-20 07:18:53 +01:00
|
|
|
version = "1.10.0";
|
2016-09-21 23:44:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-01-30 11:50:31 +00:00
|
|
|
owner = "coredns";
|
2016-09-21 23:44:32 +01:00
|
|
|
repo = "coredns";
|
|
|
|
rev = "v${version}";
|
2022-09-20 07:18:53 +01:00
|
|
|
sha256 = "sha256-Kb4nkxuyZHJT5dqFSkqReFkN8q1uYm7wbhSIiLd8Hck=";
|
2016-09-21 23:44:32 +01:00
|
|
|
};
|
|
|
|
|
2022-09-20 07:18:53 +01:00
|
|
|
vendorSha256 = "sha256-nyMeKmGoypDrpZHYHGjhRnjgC3tbOX/dlj96pnXrdLE=";
|
2016-09-21 23:44:32 +01:00
|
|
|
|
2022-03-16 13:42:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace test/file_cname_proxy_test.go \
|
|
|
|
--replace "TestZoneExternalCNAMELookupWithProxy" \
|
|
|
|
"SkipZoneExternalCNAMELookupWithProxy"
|
|
|
|
|
|
|
|
substituteInPlace test/readme_test.go \
|
|
|
|
--replace "TestReadme" "SkipReadme"
|
2022-05-25 22:45:19 +01:00
|
|
|
'' + lib.optionalString stdenv.isDarwin ''
|
|
|
|
# loopback interface is lo0 on macos
|
|
|
|
sed -E -i 's/\blo\b/lo0/' plugin/bind/setup_test.go
|
2022-03-16 13:42:28 +00:00
|
|
|
'';
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-16 12:05:23 +00:00
|
|
|
homepage = "https://coredns.io";
|
2016-09-21 23:44:32 +01:00
|
|
|
description = "A DNS server that runs middleware";
|
|
|
|
license = licenses.asl20;
|
2022-10-04 18:06:48 +01:00
|
|
|
maintainers = with maintainers; [ rushmorem rtreffer deltaevo ];
|
2016-09-21 23:44:32 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|