01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
40 lines
951 B
Nix
40 lines
951 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, lib
|
||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||
}:
|
||
|
||
buildGoModule rec {
|
||
pname = "gobetween";
|
||
version = "0.8.0";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "yyyar";
|
||
repo = "gobetween";
|
||
rev = version;
|
||
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
|
||
};
|
||
|
||
patches = [
|
||
./gomod.patch
|
||
];
|
||
|
||
buildPhase = ''
|
||
make -e build${lib.optionalString enableStatic "-static"}
|
||
'';
|
||
|
||
vendorSha256 = null; #vendorSha256 = "";
|
||
|
||
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 = "https://gobetween.io";
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ tomberek ];
|
||
broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.go-modules --check
|
||
};
|
||
}
|