git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #111083 from higebu/add-gobgp
commit94cafab3ad33fcf457966330b4b5ba57899ede50 authorSandro <sandro.jaeckel@gmail.com> dateFri 29 Jan 2021, 09:47 (6 years ago) parent5f40e6875e0929
3 files changed+41
maintainers/maintainer-list.nix+6 pkgs/tools/networking/gobgp/default.nix+33 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -3657,6 +3657,12 @@
36573657 githubId = 3656888;
36583658 name = "hhm";
36593659 };
3660+ higebu = {
3661+ name = "Yuya Kusakabe";
3662+ email = "yuya.kusakabe@gmail.com";
3663+ github = "higebu";
3664+ githubId = 733288;
3665+ };
36603666 hinton = {
36613667 email = "t@larkery.com";
36623668 name = "Tom Hinton";
pkgs/tools/networking/gobgp/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ buildGoModule, fetchFromGitHub, lib }:
2+
3+buildGoModule rec {
4+ pname = "gobgp";
5+ version = "2.23.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "osrg";
9+ repo = "gobgp";
10+ rev = "v${version}";
11+ sha256 = "0r7w1c3rh0wnsrhdpzr2fp1aqdqafrb42f2hra6xwwspr092ixq0";
12+ };
13+
14+ vendorSha256 = "0dmd4r6x76jn8pyvp47x4llzc2wij5m9lchgyaagcb5sfdgbns9x";
15+
16+ postConfigure = ''
17+ export CGO_ENABLED=0
18+ '';
19+
20+ buildFlagsArray = ''
21+ -ldflags=
22+ -s -w -extldflags '-static'
23+ '';
24+
25+ subPackages = [ "cmd/gobgp" ];
26+
27+ meta = with lib; {
28+ description = "A CLI tool for GoBGP";
29+ homepage = "https://osrg.github.io/gobgp/";
30+ license = licenses.asl20;
31+ maintainers = with maintainers; [ higebu ];
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -728,6 +728,8 @@ in
728728
729729 albert = libsForQt5.callPackage ../applications/misc/albert {};
730730
731+ gobgp = callPackage ../tools/networking/gobgp { };
732+
731733 metapixel = callPackage ../tools/graphics/metapixel { };
732734
733735 ### APPLICATIONS/TERMINAL-EMULATORS