2021-01-29 01:36:09 +00:00
|
|
|
{
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgp";
|
2024-12-08 15:05:15 +00:00
|
|
|
version = "3.32.0";
|
2021-01-29 01:36:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
|
|
|
rev = "v${version}";
|
2024-12-08 15:05:15 +00:00
|
|
|
sha256 = "sha256-DIOii1jFVK3jwDLaLFWBbbQPC9eQnTwLYwI8uC8G8ig=";
|
2021-01-29 01:36:09 +00:00
|
|
|
};
|
|
|
|
|
2024-10-03 05:39:23 +00:00
|
|
|
vendorHash = "sha256-FYLH1Ej8Bm0+tS5Ikj1CPF+1t5opmzee8iHRZSW94Yk=";
|
2021-01-29 01:36:09 +00:00
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-extldflags '-static'"
|
|
|
|
];
|
2021-01-29 01:36:09 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/gobgp" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool for GoBGP";
|
|
|
|
homepage = "https://osrg.github.io/gobgp/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ higebu ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "gobgp";
|
2021-01-29 01:36:09 +00:00
|
|
|
};
|
|
|
|
}
|