forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#147159 from 0x4A6F/master-stayrtr
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters