mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
6ca4a96533
* stayrtr: 0.5.1 -> 0.6.1 * stayrtr: refactor and convert to by-name * stayrtr: reformat with nixfmt-rfc-style
40 lines
841 B
Nix
40 lines
841 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
stayrtr,
|
|
testers,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "stayrtr";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bgp";
|
|
repo = "stayrtr";
|
|
rev = "v${version}";
|
|
hash = "sha256-uNZe3g8hs9c0uXrkWSTA+e/gziOpWqx5oFIJ2ZPgEzU=";
|
|
};
|
|
vendorHash = "sha256-0PtQzwBhUoASUMnAAVZ4EIDmqIEaH0nct2ngyIkR+Qg=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = stayrtr;
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/bgp/stayrtr/releases/tag/v${version}";
|
|
description = "RPKI-To-Router server implementation in Go";
|
|
homepage = "https://github.com/bgp/stayrtr/";
|
|
license = licenses.bsd3;
|
|
mainProgram = "stayrtr";
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
};
|
|
}
|