summary refs log tree commit diff
path: root/pkgs/tools/networking/yggdrasil
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:09:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:09:00 -0500
commit28a71c8f5974314b976c4699a3c6c7a933fb3ca9 (patch)
treedf7fa57dc9e99df222473673f5d3942c6c00e0de /pkgs/tools/networking/yggdrasil
parent2d271bdd4cc8767304111a5a5a1b626d37292681 (diff)
downloadnixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar.gz
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar.bz2
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar.lz
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar.xz
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.tar.zst
nixpkgs-28a71c8f5974314b976c4699a3c6c7a933fb3ca9.zip
yggdrasil: fix build on darwin
Diffstat (limited to 'pkgs/tools/networking/yggdrasil')
-rw-r--r--pkgs/tools/networking/yggdrasil/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/networking/yggdrasil/default.nix b/pkgs/tools/networking/yggdrasil/default.nix
index 3bf3b97c235..605801b6ab7 100644
--- a/pkgs/tools/networking/yggdrasil/default.nix
+++ b/pkgs/tools/networking/yggdrasil/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, Foundation }:
 
 buildGoModule rec {
   pname = "yggdrasil";
@@ -13,6 +13,8 @@ buildGoModule rec {
 
   modSha256 = "057yl3i29kwpd129aa2rb67s5rmz898fi2a7lxv3nfjp7018s9qw";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Foundation ];
+
   # Change the default location of the management socket on Linux
   # systems so that the yggdrasil system service unit does not have to
   # be granted write permission to /run.
@@ -27,7 +29,7 @@ buildGoModule rec {
       -s -w
   '';
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description =
       "An experiment in scalable routing as an encrypted IPv6 overlay network";
     homepage = "https://yggdrasil-network.github.io/";