depot/third_party/nixpkgs/pkgs/servers/routinator/default.nix

35 lines
848 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "routinator";
version = "0.13.2";
src = fetchFromGitHub {
owner = "NLnetLabs";
repo = pname;
rev = "v${version}";
hash = "sha256-DCejOfL+c04MABweyuvDLImlYKj/SONxBfXD/4OVzH0=";
};
cargoHash = "sha256-X+pAvudfbxng6kMv0NO00v6mMBXUMaXvZb/L1OgWd38=";
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
buildNoDefaultFeatures = true;
buildFeatures = [ "socks" ];
meta = with lib; {
description = "An 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";
};
}