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 02:36:09 +01:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gobgp";
2023-08-19 01:06:17 +02:00
version = "3.17.0";
2021-01-29 02:36:09 +01:00
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
2023-08-19 01:06:17 +02:00
sha256 = "sha256-LpQMRn0mINhixbS8GpYAqr0pjwbnQdUOs2BH3rkQ3hU=";
2021-01-29 02:36:09 +01:00
};
2023-05-06 10:23:56 +02:00
vendorHash = "sha256-Z7vYpDQIKc4elVBLiGtxF3D9pec4QNvWFLpux/29t1Y=";
2021-01-29 02:36:09 +01:00
postConfigure = ''
export CGO_ENABLED=0
'';
2021-08-26 08:45:51 +02:00
ldflags = [
"-s" "-w" "-extldflags '-static'"
];
2021-01-29 02:36:09 +01: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 ];
};
}