obfs4: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:05:00 -05:00
parent 1565aabb5e
commit dc68986142
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, fetchgit, buildGoModule }:
{ stdenv, fetchgit, buildGoModule, Security }:
buildGoModule rec {
pname = "obfs4";
@ -12,7 +12,9 @@ buildGoModule rec {
modSha256 = "150kg22kznrdj5icjxk3qd70g7wpq8zd2zklw1y2fgvrggw8zvyv";
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "A pluggable transport proxy";
homepage = https://www.torproject.org/projects/obfsproxy;
repositories.git = https://git.torproject.org/pluggable-transports/obfs4.git;

View file

@ -5575,7 +5575,9 @@ in
obexd = callPackage ../tools/bluetooth/obexd { };
obfs4 = callPackage ../tools/networking/obfs4 { };
obfs4 = callPackage ../tools/networking/obfs4 {
inherit (darwin.apple_sdk.frameworks) Security;
};
oci-image-tool = callPackage ../tools/misc/oci-image-tool { };