5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
32 lines
681 B
Nix
32 lines
681 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gobgp";
|
|
version = "3.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osrg";
|
|
repo = "gobgp";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zDLL+3k6/Jgq/pflpmjuLcfPzvDl0LQLQklW+kOvtQg=";
|
|
};
|
|
|
|
vendorHash = "sha256-8qEGp95y8iBIJXCTh2Pa/JwiruZVVIjHLwaZqwFZMl8=";
|
|
|
|
postConfigure = ''
|
|
export CGO_ENABLED=0
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-extldflags '-static'"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|