nixpkgs/pkgs/tools/networking/gobgp/default.nix
2023-10-02 18:41:29 +00:00

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 ];
};
}