gobetween: fix build on darwin
This commit is contained in:
parent
069aff87e7
commit
f68366f274
@ -1,4 +1,4 @@
|
||||
{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }:
|
||||
{ buildGoModule, fetchFromGitHub, stdenv, Security, enableStatic ? false }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gobetween";
|
||||
@ -14,8 +14,10 @@ buildGoModule rec {
|
||||
modSha256 =
|
||||
"dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78";
|
||||
|
||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
buildPhase = ''
|
||||
make build${lib.optionalString enableStatic "-static"}
|
||||
make build${stdenv.lib.optionalString enableStatic "-static"}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
@ -25,7 +27,7 @@ buildGoModule rec {
|
||||
cp -r config $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Modern & minimalistic load balancer for the Сloud era";
|
||||
homepage = "http://gobetween.io";
|
||||
license = licenses.mit;
|
||||
|
@ -15536,6 +15536,7 @@ in
|
||||
|
||||
gobetween = callPackage ../servers/gobetween {
|
||||
buildGoModule = buildGo112Module;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
h2o = callPackage ../servers/http/h2o { };
|
||||
|
Loading…
Reference in New Issue
Block a user