{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule (finalAttrs: { pname = "dnsproxy"; version = "0.76.1"; src = fetchFromGitHub { owner = "AdguardTeam"; repo = "dnsproxy"; tag = "v${finalAttrs.version}"; hash = "sha256-XbFa0KN5RYcdjXHKSnSs0ba+9YDFGZN/DafV4gOSow0="; }; vendorHash = "sha256-87WXRBzV7ROsWAhtS8vcpvj4x1yIcFDaEje8inAqwoo="; ldflags = [ "-s" "-w" "-X" "github.com/AdguardTeam/dnsproxy/internal/version.version=${finalAttrs.version}" ]; # Development tool dependencies; not part of the main project excludedPackages = [ "internal/tools" ]; doCheck = false; meta = { description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support"; homepage = "https://github.com/AdguardTeam/dnsproxy"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ contrun diogotcorreia ]; mainProgram = "dnsproxy"; }; })