2021-01-29 02:36:09 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgp";
|
2021-12-07 02:26:57 +01:00
|
|
|
version = "2.34.0";
|
2021-01-29 02:36:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
|
|
|
rev = "v${version}";
|
2021-12-07 02:26:57 +01:00
|
|
|
sha256 = "sha256-xyakq5DXwzONEP6EvDpAuzCrTDWcs+7asDlq9Vf4c1k=";
|
2021-01-29 02:36:09 +01:00
|
|
|
};
|
|
|
|
|
2021-09-16 11:33:24 +02:00
|
|
|
vendorSha256 = "sha256-+dX/XByFW5/zvfXvyWePAv9X71dJEKaQf6xNXAXoMxw=";
|
2021-01-29 02:36:09 +01:00
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-extldflags '-static'"
|
|
|
|
];
|
2021-01-29 02:36:09 +01:00
|
|
|
|
|
|
|
subPackages = [ "cmd/gobgp" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI tool for GoBGP";
|
|
|
|
homepage = "https://osrg.github.io/gobgp/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ higebu ];
|
|
|
|
};
|
|
|
|
}
|