···11+{ lib
22+, rustPlatform
33+, fetchFromGitHub
44+, pkg-config
55+, stdenv
66+, Security
77+}:
88+99+rustPlatform.buildRustPackage rec {
1010+ pname = "rtrtr";
1111+ version = "0.1.2";
1212+1313+ src = fetchFromGitHub {
1414+ owner = "NLnetLabs";
1515+ repo = pname;
1616+ rev = "v${version}";
1717+ hash = "sha256-8wcmciQ2OcvMNl6gADte40jrP+VfhoKn95ofjyjtRIo=";
1818+ };
1919+2020+ cargoSha256 = "sha256-Jdu5U56Duqzakvj3rldzch17y1nhJmuxwJtq4Ydx3IY=";
2121+2222+ buildInputs = lib.optional stdenv.isDarwin Security;
2323+ nativeBuildInputs = [ pkg-config ];
2424+2525+ buildNoDefaultFeatures = true;
2626+2727+ meta = with lib; {
2828+ description = "RPKI data proxy";
2929+ longDescription = ''
3030+ TRTR is an RPKI data proxy, designed to collect Validated ROA Payloads
3131+ from one or more sources in multiple formats and dispatch it onwards. It
3232+ provides the means to implement multiple distribution architectures for RPKI
3333+ such as centralised RPKI validators that dispatch data to local caching RTR
3434+ servers. RTRTR can read RPKI data from multiple RPKI Relying Party packages via
3535+ RTR and JSON and, in turn, provide an RTR service for routers to connect to.
3636+ '';
3737+ homepage = "https://github.com/NLnetLabs/rtrtr";
3838+ changelog = "https://github.com/NLnetLabs/rtrtr/blob/v${version}/Changelog.md";
3939+ license = licenses.bsd3;
4040+ maintainers = with maintainers; [ steamwalker ];
4141+ };
4242+}