depot/third_party/nixpkgs/pkgs/servers/misc/gobgpd/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

40 lines
782 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "gobgpd";
version = "3.19.0";
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "refs/tags/v${version}";
hash = "sha256-zDLL+3k6/Jgq/pflpmjuLcfPzvDl0LQLQklW+kOvtQg=";
};
vendorHash = "sha256-8qEGp95y8iBIJXCTh2Pa/JwiruZVVIjHLwaZqwFZMl8=";
postConfigure = ''
export CGO_ENABLED=0
'';
ldflags = [
"-s"
"-w"
"-extldflags '-static'"
];
subPackages = [
"cmd/gobgpd"
];
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 ];
};
}