2021-11-23 16:43:56 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
, stayrtr
|
2022-04-20 15:40:48 +01:00
|
|
|
, testers
|
2021-11-23 16:43:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "stayrtr";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bgp";
|
|
|
|
repo = "stayrtr";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10ndb8p7znnjycwg56m63gzqf9zc6lq9mcvz4n48j0c4il5xyn8x";
|
|
|
|
};
|
|
|
|
vendorSha256 = "1nwrzbpqycr4ixk8a90pgaxcwakv5nlfnql6hmcc518qrva198wp";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2022-04-20 15:40:48 +01:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2021-11-23 16:43:56 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|