nebula: fix build on darwin

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

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "nebula";
@ -13,11 +13,13 @@ buildGoModule rec {
modSha256 = "1sy5mnwn9fxjf3y41lm8gsggid2c0y08iw88m9ng8psaf4qid8ij";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/nebula" "cmd/nebula-cert" ];
buildFlagsArray = [ "-ldflags='-X main.Build=${version}'" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "A scalable overlay networking tool with a focus on performance, simplicity and security";
longDescription = ''
Nebula is a scalable overlay networking tool with a focus on performance,

View file

@ -5348,7 +5348,9 @@ in
ndppd = callPackage ../applications/networking/ndppd { };
nebula = callPackage ../tools/networking/nebula { };
nebula = callPackage ../tools/networking/nebula {
inherit (darwin.apple_sdk.frameworks) Security;
};
nemiver = callPackage ../development/tools/nemiver { };