Skip to content

Commit

Permalink
Merge pull request NixOS#147159 from 0x4A6F/master-stayrtr
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Dec 31, 2021
2 parents 51cb27c + 8039e18 commit 568582f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/servers/stayrtr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, fetchFromGitHub
, buildGoModule
, stayrtr
, testVersion
}:

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}"
];

passthru.tests.version = 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34109,6 +34109,8 @@ with pkgs;

gortr = callPackage ../servers/gortr {};

stayrtr = callPackage ../servers/stayrtr {};

sentencepiece = callPackage ../development/libraries/sentencepiece {};

kcli = callPackage ../development/tools/kcli {};
Expand Down

0 comments on commit 568582f

Please sign in to comment.