Files
2026-07-12 15:58:31 +00:00

43 lines
936 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "dnsproxy";
version = "0.83.0";
src = fetchFromGitHub {
owner = "AdguardTeam";
repo = "dnsproxy";
tag = "v${finalAttrs.version}";
hash = "sha256-ceeNS1Z2xQgZrouRTh48in+Z71dBj/dtnOYTPY/0az8=";
};
vendorHash = "sha256-6skcvkErUm/0u7yk8p70tYnT4d1XLySw6arMgPnOzq8=";
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";
};
})