2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dnsproxy";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.73.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AdguardTeam";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "dnsproxy";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Xxi23Cwm389fsDcYa3qJ9GhDZVXwh/LiWPfiYMuG5Js=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-tyEp0vY8hWE8jTvkxKuqQJcgeey+c50pxREpmlZWE24=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X"
|
|
|
|
"github.com/AdguardTeam/dnsproxy/internal/version.version=${version}"
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
# Development tool dependencies; not part of the main project
|
|
|
|
excludedPackages = [ "internal/tools" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
|
|
|
|
homepage = "https://github.com/AdguardTeam/dnsproxy";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.asl20;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
contrun
|
|
|
|
diogotcorreia
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "dnsproxy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|