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

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

29 lines
771 B
Nix
Raw Normal View History

2022-04-17 00:38:58 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pathvector";
2023-01-09 00:21:28 +00:00
version = "6.1.0";
2022-04-17 00:38:58 +00:00
src = fetchFromGitHub {
owner = "natesales";
repo = "pathvector";
rev = "v${version}";
2023-01-09 00:21:28 +00:00
sha256 = "sha256-tMcoL+nvvMBCWSVD+l42e6IlOIj8ERP9pgBHcJBtegY=";
2022-04-17 00:38:58 +00:00
};
2023-01-09 00:21:28 +00:00
vendorHash = "sha256-+GML6a9LzHZfByHv7ODp7fHBauExsZTzUccMEeeOFNg=";
2022-04-17 00:38:58 +00:00
CGO_ENABLED = 0;
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ];
doCheck = false;
meta = with lib; {
description = "Declarative edge routing platform that automates route optimization and control plane configuration";
homepage = "https://pathvector.io";
license = licenses.gpl3;
maintainers = with maintainers; [ matthewpi ];
};
}