···1+{ lib
2+, rustPlatform
3+, fetchFromGitHub
4+, pkg-config
5+, stdenv
6+, Security
7+}:
8+9+rustPlatform.buildRustPackage rec {
10+ pname = "rtrtr";
11+ version = "0.1.2";
12+13+ src = fetchFromGitHub {
14+ owner = "NLnetLabs";
15+ repo = pname;
16+ rev = "v${version}";
17+ hash = "sha256-8wcmciQ2OcvMNl6gADte40jrP+VfhoKn95ofjyjtRIo=";
18+ };
19+20+ cargoSha256 = "sha256-Jdu5U56Duqzakvj3rldzch17y1nhJmuxwJtq4Ydx3IY=";
21+22+ buildInputs = lib.optional stdenv.isDarwin Security;
23+ nativeBuildInputs = [ pkg-config ];
24+25+ buildNoDefaultFeatures = true;
26+27+ meta = with lib; {
28+ description = "RPKI data proxy";
29+ longDescription = ''
30+ TRTR is an RPKI data proxy, designed to collect Validated ROA Payloads
31+ from one or more sources in multiple formats and dispatch it onwards. It
32+ provides the means to implement multiple distribution architectures for RPKI
33+ such as centralised RPKI validators that dispatch data to local caching RTR
34+ servers. RTRTR can read RPKI data from multiple RPKI Relying Party packages via
35+ RTR and JSON and, in turn, provide an RTR service for routers to connect to.
36+ '';
37+ homepage = "https://github.com/NLnetLabs/rtrtr";
38+ changelog = "https://github.com/NLnetLabs/rtrtr/blob/v${version}/Changelog.md";
39+ license = licenses.bsd3;
40+ maintainers = with maintainers; [ steamwalker ];
41+ };
42+}