about summary refs log tree commit diff
path: root/pkgs/by-name/ro/routinator/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ro/routinator/package.nix')
-rw-r--r--pkgs/by-name/ro/routinator/package.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/ro/routinator/package.nix b/pkgs/by-name/ro/routinator/package.nix
new file mode 100644
index 0000000000000..e7199164ddd7d
--- /dev/null
+++ b/pkgs/by-name/ro/routinator/package.nix
@@ -0,0 +1,31 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "routinator";
+  version = "0.14.0";
+
+  src = fetchFromGitHub {
+    owner = "NLnetLabs";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-SUcAhXIPgYGFkUIgSrUJrxwWQvkkmWG/d12hv8+PQI0=";
+  };
+
+  cargoHash = "sha256-1JxAbQPCQqDVry3wGIdY4q18rzCXlJ7Dnc8LIvhkW1g=";
+
+  buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]);
+
+  meta = with lib; {
+    description = "RPKI Validator written in Rust";
+    homepage = "https://github.com/NLnetLabs/routinator";
+    changelog = "https://github.com/NLnetLabs/routinator/blob/v${version}/Changelog.md";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ _0x4A6F ];
+    mainProgram = "routinator";
+  };
+}