depot/third_party/nixpkgs/pkgs/servers/stayrtr/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

40 lines
777 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
, stayrtr
, testers
}:
buildGoModule rec {
pname = "stayrtr";
version = "0.5.1";
src = fetchFromGitHub {
owner = "bgp";
repo = "stayrtr";
rev = "v${version}";
hash = "sha256-/KwL/SEnHquFhPcYXpvQs71W4K1BrbqTPakatTNF47Q=";
};
vendorHash = "sha256-ndMME9m3kbv/c1iKlU2Pn/YoiRQy7jfVQri3M+qhujk=";
patches = [
./go.mod.patch
];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
passthru.tests.version = testers.testVersion {
package = stayrtr;
};
meta = with lib; {
description = "Simple RPKI-To-Router server. (Hard fork of GoRTR)";
homepage = "https://github.com/bgp/stayrtr/";
license = licenses.bsd3;
maintainers = with maintainers; [ _0x4A6F ];
};
}