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

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

34 lines
708 B
Nix
Raw Normal View History

2021-01-29 01:36:09 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "gobgp";
2024-05-01 02:32:10 +00:00
version = "3.26.0";
2021-01-29 01:36:09 +00:00
src = fetchFromGitHub {
owner = "osrg";
repo = "gobgp";
rev = "v${version}";
2024-05-01 02:32:10 +00:00
sha256 = "sha256-bFxKFAw02M8RmMCFFT3nu3urmvh7Wzi0rryuTi8Hw9k=";
2021-01-29 01:36:09 +00:00
};
2024-05-01 02:32:10 +00:00
vendorHash = "sha256-wrgRQwisOHAhvRbvGXMW5VWkQuEifCwCo3usuxLie4A=";
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "gobgp";
2021-01-29 01:36:09 +00:00
};
}