diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 05:13:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 05:13:00 -0500 |
commit | f68366f274a491272b0632b9dccb15a919cd7cfa (patch) | |
tree | 552d0c42da0c3533ca6010a7c840a547e55813a2 /pkgs/servers/gobetween | |
parent | 069aff87e7e1c0a4bd209e55621c4e1302a8977d (diff) |
gobetween: fix build on darwin
Diffstat (limited to 'pkgs/servers/gobetween')
-rw-r--r-- | pkgs/servers/gobetween/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/servers/gobetween/default.nix b/pkgs/servers/gobetween/default.nix index ff59ad53ed1c..e66d5581b3c8 100644 --- a/pkgs/servers/gobetween/default.nix +++ b/pkgs/servers/gobetween/default.nix @@ -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; |