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

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

48 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-25 21:45:19 +00:00
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
2022-12-13 16:00:00 +00:00
, installShellFiles
2022-05-25 21:45:19 +00:00
}:
2016-09-21 22:44:32 +00:00
2019-12-16 12:05:23 +00:00
buildGoModule rec {
pname = "coredns";
2023-02-15 14:40:18 +00:00
version = "1.10.1";
2016-09-21 22:44:32 +00:00
src = fetchFromGitHub {
2019-01-30 11:50:31 +00:00
owner = "coredns";
2016-09-21 22:44:32 +00:00
repo = "coredns";
rev = "v${version}";
2023-02-15 14:40:18 +00:00
sha256 = "sha256-/+D/jATZhHSxLPB8RkPLUYAZ3O+/9l8XIhgokXz2SUQ=";
2016-09-21 22:44:32 +00:00
};
2023-02-15 14:40:18 +00:00
vendorHash = "sha256-aWmwzIHScIMb3DPzr4eto2yETMgKd/hUy18X8KxQGos=";
2016-09-21 22:44:32 +00:00
2022-12-13 16:00:00 +00:00
nativeBuildInputs = [ installShellFiles ];
outputs = [ "out" "man" ];
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 21:45:19 +00: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
'';
2022-12-13 16:00:00 +00:00
postInstall = ''
installManPage man/*
'';
meta = with lib; {
2019-12-16 12:05:23 +00:00
homepage = "https://coredns.io";
2016-09-21 22:44:32 +00:00
description = "A DNS server that runs middleware";
license = licenses.asl20;
2022-10-04 17:06:48 +00:00
maintainers = with maintainers; [ rushmorem rtreffer deltaevo ];
2016-09-21 22:44:32 +00:00
};
}