nixpkgs/pkgs/servers/stayrtr/default.nix

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

37 lines
740 B
Nix
Raw Normal View History

2021-11-23 16:43:56 +00:00
{ lib
, fetchFromGitHub
, buildGoModule
, stayrtr
, testers
2021-11-23 16:43:56 +00:00
}:
buildGoModule rec {
pname = "stayrtr";
2023-01-28 05:22:01 +00:00
version = "0.4.0";
2021-11-23 16:43:56 +00:00
src = fetchFromGitHub {
owner = "bgp";
repo = "stayrtr";
rev = "v${version}";
2023-01-28 05:22:01 +00:00
sha256 = "sha256-oRFBvue5Tcgty1GgsZGb/CMHmKM0mIc5vWOMsL/0IfI=";
2021-11-23 16:43:56 +00:00
};
2023-01-28 05:22:01 +00:00
vendorHash = "sha256-VomrmyNa5I6AVSpw5sg0e4b7w/JlFQINBYm+eh1FoNw=";
2021-11-23 16:43:56 +00:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
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 ];
};
}