gobetween: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:13:00 -05:00
parent 069aff87e7
commit f68366f274
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }: { buildGoModule, fetchFromGitHub, stdenv, Security, enableStatic ? false }:
buildGoModule rec { buildGoModule rec {
pname = "gobetween"; pname = "gobetween";
@ -14,8 +14,10 @@ buildGoModule rec {
modSha256 = modSha256 =
"dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78"; "dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildPhase = '' buildPhase = ''
make build${lib.optionalString enableStatic "-static"} make build${stdenv.lib.optionalString enableStatic "-static"}
''; '';
installPhase = '' installPhase = ''
@ -25,7 +27,7 @@ buildGoModule rec {
cp -r config $out/share cp -r config $out/share
''; '';
meta = with lib; { meta = with stdenv.lib; {
description = "Modern & minimalistic load balancer for the Сloud era"; description = "Modern & minimalistic load balancer for the Сloud era";
homepage = "http://gobetween.io"; homepage = "http://gobetween.io";
license = licenses.mit; license = licenses.mit;

View File

@ -15536,6 +15536,7 @@ in
gobetween = callPackage ../servers/gobetween { gobetween = callPackage ../servers/gobetween {
buildGoModule = buildGo112Module; buildGoModule = buildGo112Module;
inherit (darwin.apple_sdk.frameworks) Security;
}; };
h2o = callPackage ../servers/http/h2o { }; h2o = callPackage ../servers/http/h2o { };