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
738 B
Nix
Raw Normal View History

2021-11-23 17:43:56 +01:00
{ lib
, fetchFromGitHub
, buildGoModule
, stayrtr
, testers
2021-11-23 17:43:56 +01:00
}:
buildGoModule rec {
pname = "stayrtr";
2023-03-01 22:38:38 +01:00
version = "0.5.0";
2021-11-23 17:43:56 +01:00
src = fetchFromGitHub {
owner = "bgp";
repo = "stayrtr";
rev = "v${version}";
2023-03-01 22:38:38 +01:00
hash = "sha256-5M4KbP5bmG+jUjR8hXJ2yyLLuLXzBvVGfjANv/Zb3jc=";
2021-11-23 17:43:56 +01:00
};
2023-03-01 22:38:38 +01:00
vendorHash = "sha256-oOFJNaj4wpfX7ct11W519V9dJh0/zGpuLImepLT17Eg=";
2021-11-23 17:43:56 +01:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
passthru.tests.version = testers.testVersion {
2021-11-23 17:43:56 +01: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 ];
};
}