nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "routinator";
10 version = "0.14.2";
11
12 src = fetchFromGitHub {
13 owner = "NLnetLabs";
14 repo = "routinator";
15 rev = "v${version}";
16 hash = "sha256-itD9d+EqEdJ2bTJEpHxJCFFS8Mpc7AFQ1JgkNQxncV0=";
17 };
18
19 cargoHash = "sha256-58EnGouq8iKkgsvyHqARoQ0u4QXjw0m6pv4Am4J9wlU=";
20
21 meta = {
22 description = "RPKI Validator written in Rust";
23 homepage = "https://github.com/NLnetLabs/routinator";
24 changelog = "https://github.com/NLnetLabs/routinator/blob/v${version}/Changelog.md";
25 license = lib.licenses.bsd3;
26 maintainers = with lib.maintainers; [ _0x4A6F ];
27 mainProgram = "routinator";
28 };
29
30 passthru.tests = {
31 basic-functioniality = nixosTests.routinator;
32 };
33}