dnsproxy: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:48:00 -05:00
parent 5b6342e8af
commit 59bc2841b4
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "dnsproxy";
@ -13,6 +13,8 @@ buildGoModule rec {
modSha256 = "0r5ybr4gpcdsldk12b0d4xiih6ckwnqkfwy89c97prv24v14zysv";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "Simple DNS proxy with DoH, DoT, and DNSCrypt support";
homepage = "https://github.com/AdguardTeam/dnsproxy";

View file

@ -2872,7 +2872,9 @@ in
dnsmasq = callPackage ../tools/networking/dnsmasq { };
dnsproxy = callPackage ../tools/networking/dnsproxy { };
dnsproxy = callPackage ../tools/networking/dnsproxy {
inherit (darwin.apple_sdk.frameworks) Security;
};
dnsperf = callPackage ../tools/networking/dnsperf { };