cargo-risczero: init at 0.14.0

This commit is contained in:
cameronfyfe 2023-05-07 03:50:08 -06:00
parent 77c642acb2
commit 35aded3ced
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-risczero";
version = "0.14.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-uZz0jJ3klaOrqzJ0BUVDHxl7lv6vt0GT6RgQuJeyeyk=";
};
cargoSha256 = "sha256-t++3+Ijn1ykjMcMsdoe/1xfaji+DQvhyiFe6M/Bpbt0=";
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 ];
};
}

View file

@ -16127,6 +16127,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-readme = callPackage ../development/tools/rust/cargo-readme { };
cargo-risczero = callPackage ../development/tools/rust/cargo-risczero { };
cargo-semver-checks = callPackage ../development/tools/rust/cargo-semver-checks { };
cargo-show-asm = callPackage ../development/tools/rust/cargo-show-asm { };