1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/tools/networking/gobgp/default.nix

33 lines
683 B
Nix
Raw Normal View History

2021-01-29 01:36:09 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gobgp";
2021-09-16 10:33:24 +01:00
version = "2.31.0";
2021-01-29 01:36:09 +00:00
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
2021-09-16 10:33:24 +01:00
sha256 = "sha256-Q55BA5iMZP5D8lLfJn82fsxQ0SP5e4OdXtGly4j3dXU=";
2021-01-29 01:36:09 +00:00
};
2021-09-16 10:33:24 +01:00
vendorSha256 = "sha256-+dX/XByFW5/zvfXvyWePAv9X71dJEKaQf6xNXAXoMxw=";
2021-01-29 01:36:09 +00:00
postConfigure = ''
export CGO_ENABLED=0
'';
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w" "-extldflags '-static'"
];
2021-01-29 01:36:09 +00:00
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 ];
};
}