2021-10-29 12:10:32 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dnsproxy";
|
2023-08-23 02:20:10 +00:00
|
|
|
version = "0.54.0";
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AdguardTeam";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-23 02:20:10 +00:00
|
|
|
sha256 = "sha256-wA88v8zF5sq3NQwKh8g4k/COviuaegGn6bBTzBMcdGM=";
|
2019-11-18 02:38:12 +00:00
|
|
|
};
|
|
|
|
|
2023-04-09 15:01:42 +00:00
|
|
|
vendorHash = null;
|
2019-11-18 02:38:12 +00:00
|
|
|
|
2021-10-29 12:10:32 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X" "main.VersionString=${version}" ];
|
|
|
|
|
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;
|
2019-11-18 02:38:12 +00:00
|
|
|
maintainers = with maintainers; [ contrun ];
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|