nixpkgs/pkgs/servers/misc/gobgpd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
782 B
Nix
Raw Normal View History

2023-01-07 22:07:32 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2021-04-09 14:56:31 +00:00
buildGoModule rec {
pname = "gobgpd";
2023-07-08 14:30:54 +00:00
version = "3.16.0";
2021-04-09 14:56:31 +00:00
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
2023-01-07 22:07:32 +00:00
rev = "refs/tags/v${version}";
2023-07-08 14:30:54 +00:00
hash = "sha256-RdZk2I7QvIWEeiL81N5PLJYE0KHYbkvjJeDXTg3F9c4=";
2021-04-09 14:56:31 +00:00
};
2023-05-04 03:58:47 +00:00
vendorHash = "sha256-Z7vYpDQIKc4elVBLiGtxF3D9pec4QNvWFLpux/29t1Y=";
2021-04-09 14:56:31 +00:00
postConfigure = ''
export CGO_ENABLED=0
'';
2021-08-26 06:45:51 +00:00
ldflags = [
2023-01-07 22:07:32 +00:00
"-s"
"-w"
"-extldflags '-static'"
2021-08-26 06:45:51 +00:00
];
2021-04-09 14:56:31 +00:00
2023-01-07 22:07:32 +00:00
subPackages = [
"cmd/gobgpd"
];
2021-04-09 14:56:31 +00: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 ];
};
}