depot/third_party/nixpkgs/pkgs/applications/networking/nextdns/default.nix

26 lines
624 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "nextdns";
version = "1.42.0";
src = fetchFromGitHub {
owner = "nextdns";
repo = "nextdns";
rev = "v${version}";
sha256 = "sha256-aQUz6FK04h3nzieK9fX7odVVt/zcdhXlX3T1Z1rN/ak=";
};
vendorHash = "sha256-DATSGSFRMrX972CWCiSIlOhDuAG3zcVyuILZ3IpVirM=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
meta = with lib; {
description = "NextDNS DNS/53 to DoH Proxy";
homepage = "https://nextdns.io";
license = licenses.mit;
maintainers = with maintainers; [ pnelson ];
mainProgram = "nextdns";
};
}