gobgp: init at 2.23.0

This commit is contained in:
Yuya Kusakabe 2021-01-29 01:36:09 +00:00
parent d150d9ad67
commit 75e0929ea8
No known key found for this signature in database
GPG Key ID: 3C36E4E791066C7B
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gobgp";
version = "2.23.0";
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
sha256 = "0r7w1c3rh0wnsrhdpzr2fp1aqdqafrb42f2hra6xwwspr092ixq0";
};
vendorSha256 = "0dmd4r6x76jn8pyvp47x4llzc2wij5m9lchgyaagcb5sfdgbns9x";
postConfigure = ''
export CGO_ENABLED=0
'';
buildFlagsArray = ''
-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 ];
};
}

View File

@ -728,6 +728,8 @@ in
albert = libsForQt5.callPackage ../applications/misc/albert {};
gobgp = callPackage ../tools/networking/gobgp { };
metapixel = callPackage ../tools/graphics/metapixel { };
### APPLICATIONS/TERMINAL-EMULATORS