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

27 lines
703 B
Nix
Raw Normal View History

2020-03-21 02:46:00 -07:00
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
2016-09-21 15:44:32 -07:00
2019-12-16 04:05:23 -08:00
buildGoModule rec {
pname = "coredns";
2020-03-13 21:28:21 -07:00
version = "1.6.7";
2016-09-21 15:44:32 -07:00
2019-01-30 03:50:31 -08:00
goPackagePath = "github.com/coredns/coredns";
2016-09-21 15:44:32 -07:00
src = fetchFromGitHub {
2019-01-30 03:50:31 -08:00
owner = "coredns";
2016-09-21 15:44:32 -07:00
repo = "coredns";
rev = "v${version}";
2020-03-13 21:28:21 -07:00
sha256 = "05r0dm8h23s5dafxisya48izc2ywpn5ywvhf9q6m20qkpwr8gd10";
2016-09-21 15:44:32 -07:00
};
2020-03-13 21:28:21 -07:00
modSha256 = "0wlffk6wkcyn2lphw2vmdsmzag0wxljcxrvm7sv3i124x2x3yvy4";
2016-09-21 15:44:32 -07:00
2020-03-21 02:46:00 -07:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
2016-09-21 15:44:32 -07:00
meta = with stdenv.lib; {
2019-12-16 04:05:23 -08:00
homepage = "https://coredns.io";
2016-09-21 15:44:32 -07:00
description = "A DNS server that runs middleware";
license = licenses.asl20;
2019-12-16 04:05:23 -08:00
maintainers = with maintainers; [ rushmorem rtreffer deltaevo ];
2016-09-21 15:44:32 -07:00
};
}