2020-03-21 09:48:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dnsproxy";
|
2020-03-14 04:51:44 +00:00
|
|
|
version = "0.23.7";
|
2019-11-18 02:38:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AdguardTeam";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-14 04:51:44 +00:00
|
|
|
sha256 = "1sfl2nyzspqllbklc9wf62wqxs0k3ac7vzqz8kl5h9ch654g542a";
|
2019-11-18 02:38:12 +00:00
|
|
|
};
|
|
|
|
|
2020-03-14 04:51:44 +00:00
|
|
|
modSha256 = "0r5ybr4gpcdsldk12b0d4xiih6ckwnqkfwy89c97prv24v14zysv";
|
2019-11-18 02:38:12 +00:00
|
|
|
|
2020-03-21 09:48:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-11-18 02:38:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
|
|
|
|
homepage = "https://github.com/AdguardTeam/dnsproxy";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ contrun ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|