3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/gobetween/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
951 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, lib
, enableStatic ? stdenv.hostPlatform.isStatic
}:
2020-01-13 06:48:18 +00:00
buildGoModule rec {
pname = "gobetween";
version = "0.8.0";
2020-01-13 06:48:18 +00:00
src = fetchFromGitHub {
owner = "yyyar";
repo = "gobetween";
rev = version;
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
2020-01-13 06:48:18 +00:00
};
patches = [
./gomod.patch
];
2020-01-13 06:48:18 +00:00
buildPhase = ''
make -e build${lib.optionalString enableStatic "-static"}
2020-01-13 06:48:18 +00:00
'';
vendorSha256 = null; #vendorSha256 = "";
2020-01-13 06:48:18 +00:00
installPhase = ''
mkdir -p $out/bin
cp bin/gobetween $out/bin
cp -r share $out/share
cp -r config $out/share
'';
meta = with lib; {
2020-01-13 06:48:18 +00:00
description = "Modern & minimalistic load balancer for the Сloud era";
homepage = "https://gobetween.io";
2020-01-13 06:48:18 +00:00
license = licenses.mit;
maintainers = with maintainers; [ tomberek ];
broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.go-modules --check
2020-01-13 06:48:18 +00:00
};
}