2021-01-29 02:36:09 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgp";
|
2023-02-02 04:14:17 +01:00
|
|
|
version = "3.11.0";
|
2021-01-29 02:36:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
|
|
|
rev = "v${version}";
|
2023-02-02 04:14:17 +01:00
|
|
|
sha256 = "sha256-UGRGJqeVWrt8NVf9d5Mk7k+k2Is/fwHv2X0hmyXvTZs=";
|
2021-01-29 02:36:09 +01:00
|
|
|
};
|
|
|
|
|
2023-01-10 20:43:13 +01:00
|
|
|
vendorHash = "sha256-9Vi8qrcFC2SazcGVgAf1vbKvxd8rTMgye63wSCaFonk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|