From d150d9ad67e896ddf5eb2be9325a4ea9b5afc82f Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Fri, 29 Jan 2021 01:33:55 +0000 Subject: [PATCH 1/2] maintainers: add higebu --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 20596519e011..c82154d4cc63 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3657,6 +3657,12 @@ githubId = 3656888; name = "hhm"; }; + higebu = { + name = "Yuya Kusakabe"; + email = "yuya.kusakabe@gmail.com"; + github = "higebu"; + githubId = 733288; + }; hinton = { email = "t@larkery.com"; name = "Tom Hinton"; From 75e0929ea82e5176c99528c88d20f836bf1729ff Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Fri, 29 Jan 2021 01:36:09 +0000 Subject: [PATCH 2/2] gobgp: init at 2.23.0 --- pkgs/tools/networking/gobgp/default.nix | 33 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/networking/gobgp/default.nix diff --git a/pkgs/tools/networking/gobgp/default.nix b/pkgs/tools/networking/gobgp/default.nix new file mode 100644 index 000000000000..8c0e093f9dd1 --- /dev/null +++ b/pkgs/tools/networking/gobgp/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5c2ef527ca9c..fd5dc6547686 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -728,6 +728,8 @@ in albert = libsForQt5.callPackage ../applications/misc/albert {}; + gobgp = callPackage ../tools/networking/gobgp { }; + metapixel = callPackage ../tools/graphics/metapixel { }; ### APPLICATIONS/TERMINAL-EMULATORS