3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/gobetween/default.nix
zowoq 59fd4775b6 gobetween: update vendored lxd
This allows us to drop the overrideModAttrs workaround, vendoring has been fixed in the newer lxd version.
2020-07-29 09:03:31 +10:00

40 lines
871 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ buildGoModule, fetchFromGitHub, lib, enableStatic ? false }:
buildGoModule rec {
pname = "gobetween";
version = "0.8.0";
src = fetchFromGitHub {
owner = "yyyar";
repo = "gobetween";
rev = version;
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
};
deleteVendor = true;
patches = [
./gomod.patch
];
buildPhase = ''
make -e build${lib.optionalString enableStatic "-static"}
'';
vendorSha256 = "1nkni9ikpc0wngh5v0qmlpn5s9v85lb2ih22f3h3lih7nc29yv87";
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 ];
};
}