diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2020-01-13 01:48:18 -0500 |
---|---|---|
committer | Tom Bereknyei <tom@rebelliondefense.com> | 2020-01-17 22:50:52 -0500 |
commit | 08421c2cb5a4a640832787e22af482edcff56699 (patch) | |
tree | 791f8fb3c5e2ea240c0b815d466fee8bf527a643 /pkgs/servers/gobetween | |
parent | 353ea7f3ebd34a989c30cfa714644b86f1fd50ef (diff) |
gobetween: init at 0.7.0
Diffstat (limited to 'pkgs/servers/gobetween')
-rw-r--r-- | pkgs/servers/gobetween/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/servers/gobetween/default.nix b/pkgs/servers/gobetween/default.nix new file mode 100644 index 000000000000..ff59ad53ed1c --- /dev/null +++ b/pkgs/servers/gobetween/default.nix @@ -0,0 +1,34 @@ +{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }: + +buildGoModule rec { + pname = "gobetween"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "yyyar"; + repo = "gobetween"; + rev = version; + sha256 = "f01593509ccece063acd47002c4fc52261fbbbcdbf14b088d813b7d8e38fcca8"; + }; + + modSha256 = + "dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78"; + + buildPhase = '' + make build${lib.optionalString enableStatic "-static"} + ''; + + installPhase = '' + mkdir -p $out/bin + cp bin/gobetween $out/bin + cp -r share $out/share + cp -r config $out/share + ''; + + meta = with lib; { + description = "Modern & minimalistic load balancer for the Сloud era"; + homepage = "http://gobetween.io"; + license = licenses.mit; + maintainers = with maintainers; [ tomberek ]; + }; +} |