depot/third_party/nixpkgs/pkgs/by-name/ro/routinator/package.nix

44 lines
1,003 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "routinator";
version = "0.14.2";
src = fetchFromGitHub {
owner = "NLnetLabs";
repo = pname;
rev = "v${version}";
hash = "sha256-itD9d+EqEdJ2bTJEpHxJCFFS8Mpc7AFQ1JgkNQxncV0=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-58EnGouq8iKkgsvyHqARoQ0u4QXjw0m6pv4Am4J9wlU=";
buildInputs = lib.optionals stdenv.hostPlatform.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";
};
passthru.tests = {
basic-functioniality = nixosTests.routinator;
};
}