2021-01-29 01:36:09 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgp";
|
2024-02-01 06:15:12 +00:00
|
|
|
version = "3.23.0";
|
2021-01-29 01:36:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
|
|
|
rev = "v${version}";
|
2024-02-01 06:15:12 +00:00
|
|
|
sha256 = "sha256-PUwYcwWgaV/DQl565fugppc+I/y7z7Ns3P4SspS88ts=";
|
2021-01-29 01:36:09 +00:00
|
|
|
};
|
|
|
|
|
2023-11-01 11:24:46 +00:00
|
|
|
vendorHash = "sha256-5eB3vFOo3LCsjMnWYFH0yq5+IunwKXp5C34x6NvpFZ8=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|