nixpkgs/pkgs/servers/routinator/default.nix

35 lines
861 B
Nix
Raw Normal View History

2021-09-20 14:37:05 +03:00
{ lib
, rustPlatform
2021-10-20 02:07:12 +03:00
, fetchFromGitHub
, stdenv
2021-09-20 14:37:05 +03:00
, Security
}:
2019-05-31 00:31:28 +03:00
rustPlatform.buildRustPackage rec {
pname = "routinator";
2021-09-20 14:37:05 +03:00
version = "0.10.1";
2019-05-31 00:31:28 +03:00
src = fetchFromGitHub {
owner = "NLnetLabs";
repo = pname;
2018-08-23 15:18:11 +03:00
rev = "v${version}";
2021-09-20 14:37:05 +03:00
sha256 = "sha256-ThgTGtTZ0LGm9nHJoy0KhnBFWNvKRjk7hoNTVVTeL/Y=";
2019-05-31 00:31:28 +03:00
};
2021-09-20 14:37:05 +03:00
cargoSha256 = "sha256-mcx+qUtTUxeYP0PeJp1eOQwsdS6PPUx/m7TfAyqFiIM=";
2021-03-10 15:04:25 +03:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2019-05-31 00:31:28 +03:00
2021-10-20 02:07:12 +03:00
cargoBuildFlags = [ "--no-default-features" "--features=socks" ];
cargoTestFlags = cargoBuildFlags;
meta = with lib; {
2019-05-31 00:31:28 +03:00
description = "An RPKI Validator written in Rust";
homepage = "https://github.com/NLnetLabs/routinator";
2021-10-20 02:07:12 +03:00
changelog = "https://github.com/NLnetLabs/routinator/blob/v${version}/Changelog.md";
2019-05-31 00:31:28 +03:00
license = licenses.bsd3;
2020-07-29 13:49:07 +03:00
maintainers = with maintainers; [ _0x4A6F ];
2019-05-31 00:31:28 +03:00
};
}