3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/gobetween/default.nix
2020-03-21 05:13:00 -05:00

37 lines
926 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, stdenv, Security, enableStatic ? false }:
buildGoModule rec {
pname = "gobetween";
version = "0.7.0";
src = fetchFromGitHub {
owner = "yyyar";
repo = "gobetween";
rev = version;
sha256 = "f01593509ccece063acd47002c4fc52261fbbbcdbf14b088d813b7d8e38fcca8";
};
modSha256 =
"dd91838d20c99c73447590e43edd13c87755276f17ef3e53f24c5df3d0908f78";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildPhase = ''
make build${stdenv.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 stdenv.lib; {
description = "Modern & minimalistic load balancer for the Сloud era";
homepage = "http://gobetween.io";
license = licenses.mit;
maintainers = with maintainers; [ tomberek ];
};
}