2020-03-27 08:33:21 +01:00
|
|
|
|
{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }:
|
2020-01-13 07:48:18 +01:00
|
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
|
pname = "gobetween";
|
|
|
|
|
version = "0.7.0";
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "yyyar";
|
|
|
|
|
repo = "gobetween";
|
|
|
|
|
rev = version;
|
|
|
|
|
sha256 = "f01593509ccece063acd47002c4fc52261fbbbcdbf14b088d813b7d8e38fcca8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
modSha256 =
|
|
|
|
|
"dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78";
|
|
|
|
|
|
|
|
|
|
buildPhase = ''
|
2020-03-27 08:33:21 +01:00
|
|
|
|
make build${lib.optionalString enableStatic "-static"}
|
2020-01-13 07:48:18 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
cp bin/gobetween $out/bin
|
|
|
|
|
cp -r share $out/share
|
|
|
|
|
cp -r config $out/share
|
|
|
|
|
'';
|
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
|
meta = with lib; {
|
2020-01-13 07:48:18 +01:00
|
|
|
|
description = "Modern & minimalistic load balancer for the Сloud era";
|
|
|
|
|
homepage = "http://gobetween.io";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ tomberek ];
|
|
|
|
|
};
|
|
|
|
|
}
|