summary refs log tree commit diff
path: root/pkgs/tools/networking/obfs4
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:05:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:05:00 -0500
commitdc689861429aeeab9c0757c29971c4eeb92aefce (patch)
tree141b05006df4da19ff07eabc47000f5adb4a4ce3 /pkgs/tools/networking/obfs4
parent1565aabb5e18e8c6558f1b863ac3f22598e7e7d2 (diff)
downloadnixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar.gz
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar.bz2
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar.lz
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar.xz
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.tar.zst
nixpkgs-dc689861429aeeab9c0757c29971c4eeb92aefce.zip
obfs4: fix build on darwin
Diffstat (limited to 'pkgs/tools/networking/obfs4')
-rw-r--r--pkgs/tools/networking/obfs4/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/networking/obfs4/default.nix b/pkgs/tools/networking/obfs4/default.nix
index 005abb0968b..93ebdeb0720 100644
--- a/pkgs/tools/networking/obfs4/default.nix
+++ b/pkgs/tools/networking/obfs4/default.nix
@@ -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;