mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-08 23:03:07 +00:00
41 lines
872 B
Nix
41 lines
872 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, pkg-config
|
|
, openssl
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-risczero";
|
|
version = "0.17.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-UXCZ4l45zcyn2AnfDW6dNdEnXCWL2waNwDTbermgS6M=";
|
|
};
|
|
|
|
cargoHash = "sha256-KkV+ZQAPegbeZKj3ixDSFQEyKwkKeMYceSc27xGtQms=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
# The tests require network access which is not available in sandboxed Nix builds.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Cargo extension to help create, manage, and test RISC Zero projects.";
|
|
homepage = "https://risczero.com";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
|
};
|
|
}
|