nixpkgs/pkgs/tools/networking/pathvector/default.nix
2023-05-20 18:36:23 +00:00

29 lines
771 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pathvector";
version = "6.3.0";
src = fetchFromGitHub {
owner = "natesales";
repo = "pathvector";
rev = "v${version}";
sha256 = "sha256-N4mlEfJWov1utqv+Dy+I2G1kf8t82hFYn74guzrsKF0=";
};
vendorHash = "sha256-hgUuntT6jMWI14qDE3Yjm5W8UqQ6CcvoILmSDaVEZac=";
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 ];
};
}