nixpkgs-suyu/pkgs/applications/networking/nextdns/default.nix

27 lines
617 B
Nix
Raw Normal View History

2020-05-02 03:49:22 +02:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "nextdns";
2021-09-14 19:33:16 +02:00
version = "1.37.2";
2020-05-02 03:49:22 +02:00
src = fetchFromGitHub {
owner = "nextdns";
repo = "nextdns";
rev = "v${version}";
2021-09-14 19:33:16 +02:00
sha256 = "sha256-R0n/wRCaQ8WvQer3bBLUmOdIojtfjXU0bs0pTn7L0lc=";
2020-05-02 03:49:22 +02:00
};
2021-08-25 11:23:09 +02:00
vendorSha256 = "sha256-YZm+DUrH+1xdJrGjmlajbcsnqVODVbZKivVjmqZ2e48=";
2020-05-02 03:49:22 +02:00
doCheck = false;
2021-08-26 08:45:51 +02:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-05-02 03:49:22 +02:00
meta = with lib; {
description = "NextDNS DNS/53 to DoH Proxy";
homepage = "https://nextdns.io";
license = licenses.mit;
maintainers = with maintainers; [ pnelson ];
};
}