2023-01-07 23:07:32 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-04-09 16:56:31 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gobgpd";
|
2023-03-03 07:26:38 +01:00
|
|
|
version = "3.12.0";
|
2021-04-09 16:56:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osrg";
|
|
|
|
repo = "gobgp";
|
2023-01-07 23:07:32 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-03 07:26:38 +01:00
|
|
|
hash = "sha256-keev3DZ3xN5UARuYKfSdox0KKBjrM5RoMD273Aw0AGY=";
|
2021-04-09 16:56:31 +02:00
|
|
|
};
|
|
|
|
|
2023-03-03 07:26:38 +01:00
|
|
|
vendorHash = "sha256-5lRW9gWQZRRqZoVB16kI1VEnr0XsiPtLUuioK/0f8w0=";
|
2021-04-09 16:56:31 +02:00
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
'';
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
2023-01-07 23:07:32 +01:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-extldflags '-static'"
|
2021-08-26 08:45:51 +02:00
|
|
|
];
|
2021-04-09 16:56:31 +02:00
|
|
|
|
2023-01-07 23:07:32 +01:00
|
|
|
subPackages = [
|
|
|
|
"cmd/gobgpd"
|
|
|
|
];
|
2021-04-09 16:56:31 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "BGP implemented in Go";
|
|
|
|
homepage = "https://osrg.github.io/gobgp/";
|
|
|
|
changelog = "https://github.com/osrg/gobgp/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ higebu ];
|
|
|
|
};
|
|
|
|
}
|