1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "dnsproxy";
5 version = "0.54.0";
6
7 src = fetchFromGitHub {
8 owner = "AdguardTeam";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-wA88v8zF5sq3NQwKh8g4k/COviuaegGn6bBTzBMcdGM=";
12 };
13
14 vendorHash = null;
15
16 ldflags = [ "-s" "-w" "-X" "main.VersionString=${version}" ];
17
18 doCheck = false;
19
20 meta = with lib; {
21 description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
22 homepage = "https://github.com/AdguardTeam/dnsproxy";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ contrun ];
25 };
26}