Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5}:
6
7buildGoModule rec {
8 pname = "nextdns";
9 version = "1.46.0";
10
11 src = fetchFromGitHub {
12 owner = "nextdns";
13 repo = "nextdns";
14 rev = "v${version}";
15 sha256 = "sha256-Vutd7sTVAcz7ueJYSDAOe8CUAS5agwHEG1hH8mp8its=";
16 };
17
18 vendorHash = "sha256-GOj07+OVvtp+/FiwBZJb/E9P/4wiHJrh0Cx2uO3NbCg=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X main.version=${version}"
24 ];
25
26 meta = with lib; {
27 description = "NextDNS DNS/53 to DoH Proxy";
28 homepage = "https://nextdns.io";
29 license = licenses.mit;
30 maintainers = with maintainers; [ pnelson ];
31 mainProgram = "nextdns";
32 };
33}