Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 28 lines 773 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "pathvector"; 5 version = "6.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "natesales"; 9 repo = "pathvector"; 10 rev = "v${version}"; 11 sha256 = "sha256-Rr7SVvi2K20qFTd4Gd2BzBTVIa/lCeBAJHLZ6iV2aSw="; 12 }; 13 14 vendorSha256 = "sha256-bqfYILEGgbnla7EUrzjIO2mMAuL6e4WI2OHUwOr6i+g="; 15 16 CGO_ENABLED = 0; 17 18 ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ]; 19 20 doCheck = false; 21 22 meta = with lib; { 23 description = "Declarative edge routing platform that automates route optimization and control plane configuration"; 24 homepage = "https://pathvector.io"; 25 license = licenses.gpl3; 26 maintainers = with maintainers; [ matthewpi ]; 27 }; 28}