2021-01-29 01:36:09 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgp";
|
2024-04-04 01:50:24 +00:00
|
|
|
version = "3.25.0";
|
2021-01-29 01:36:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
|
|
|
rev = "v${version}";
|
2024-04-04 01:50:24 +00:00
|
|
|
sha256 = "sha256-cb4FYsYMkrna/1IjPlEglAmeQ/vfbUiaTb5OjrWiYR4=";
|
2021-01-29 01:36:09 +00:00
|
|
|
};
|
|
|
|
|
2024-04-04 01:50:24 +00:00
|
|
|
vendorHash = "sha256-fB/PjOO3+/RVQ5DGAHx4O8wAb9p+RdDC9+xkTCefP8A=";
|
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 = "A 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
|
|
|
};
|
|
|
|
}
|