dnsproxy: modernize

This commit is contained in:
Nikolay Korotkiy
2025-06-10 20:00:36 +04:00
parent c04781ef4b
commit 64bd0a2ce5
+7 -7
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "dnsproxy";
version = "0.75.6";
src = fetchFromGitHub {
owner = "AdguardTeam";
repo = "dnsproxy";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-zMSwAbNwomb2XXOtnXJvO+ehUPYz0F8lzRkhhHhk3QQ=";
};
@@ -21,7 +21,7 @@ buildGoModule rec {
"-s"
"-w"
"-X"
"github.com/AdguardTeam/dnsproxy/internal/version.version=${version}"
"github.com/AdguardTeam/dnsproxy/internal/version.version=${finalAttrs.version}"
];
# Development tool dependencies; not part of the main project
@@ -29,14 +29,14 @@ buildGoModule rec {
doCheck = false;
meta = with lib; {
meta = {
description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
homepage = "https://github.com/AdguardTeam/dnsproxy";
license = licenses.asl20;
maintainers = with maintainers; [
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
contrun
diogotcorreia
];
mainProgram = "dnsproxy";
};
}
})