2021-10-29 12:10:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dnsproxy";
|
2024-05-31 14:25:34 +00:00
|
|
|
version = "0.71.2";
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AdguardTeam";
|
2024-02-11 10:36:45 +00:00
|
|
|
repo = "dnsproxy";
|
2019-11-18 02:38:12 +00:00
|
|
|
rev = "v${version}";
|
2024-05-31 14:25:34 +00:00
|
|
|
hash = "sha256-fsJWyb3YFmTeLf1qbO42RTldiEv3MeXyrySywGmIg5A=";
|
2019-11-18 02:38:12 +00:00
|
|
|
};
|
|
|
|
|
2024-05-31 14:25:34 +00:00
|
|
|
vendorHash = "sha256-oINdRXLtfoCOpZ+n4HAkPtXyKen4m9VaDz1ggiEzehc=";
|
2019-11-18 02:38:12 +00:00
|
|
|
|
2024-02-11 10:36:45 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X" "github.com/AdguardTeam/dnsproxy/internal/version.version=${version}" ];
|
|
|
|
|
|
|
|
# Development tool dependencies; not part of the main project
|
|
|
|
excludedPackages = [ "internal/tools" ];
|
2021-10-29 12:10:32 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-18 02:38:12 +00:00
|
|
|
description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
|
|
|
|
homepage = "https://github.com/AdguardTeam/dnsproxy";
|
2021-10-29 12:10:32 +00:00
|
|
|
license = licenses.asl20;
|
2024-02-21 10:21:57 +00:00
|
|
|
maintainers = with maintainers; [ contrun diogotcorreia ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "dnsproxy";
|
2019-11-18 02:38:12 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|