nixpkgs/pkgs/tools/networking/gobgp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
681 B
Nix
Raw Normal View History

2021-01-29 01:36:09 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gobgp";
2023-02-02 03:14:17 +00:00
version = "3.11.0";
2021-01-29 01:36:09 +00:00
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
2023-02-02 03:14:17 +00:00
sha256 = "sha256-UGRGJqeVWrt8NVf9d5Mk7k+k2Is/fwHv2X0hmyXvTZs=";
2021-01-29 01:36:09 +00:00
};
2023-01-10 19:43:13 +00:00
vendorHash = "sha256-9Vi8qrcFC2SazcGVgAf1vbKvxd8rTMgye63wSCaFonk=";
2021-01-29 01:36:09 +00:00
postConfigure = ''
export CGO_ENABLED=0
'';
2021-08-26 06:45:51 +00: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 ];
};
}