lol
1{ lib
2, stdenv
3, fetchCrate
4, rustPlatform
5, pkg-config
6, openssl
7, darwin
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "cargo-risczero";
12 version = "0.17.0";
13
14 src = fetchCrate {
15 inherit pname version;
16 hash = "sha256-UXCZ4l45zcyn2AnfDW6dNdEnXCWL2waNwDTbermgS6M=";
17 };
18
19 cargoHash = "sha256-KkV+ZQAPegbeZKj3ixDSFQEyKwkKeMYceSc27xGtQms=";
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24
25 buildInputs = [
26 openssl
27 ] ++ lib.optionals stdenv.isDarwin [
28 darwin.apple_sdk.frameworks.Security
29 ];
30
31 # The tests require network access which is not available in sandboxed Nix builds.
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Cargo extension to help create, manage, and test RISC Zero projects.";
36 homepage = "https://risczero.com";
37 license = with licenses; [ asl20 ];
38 maintainers = with maintainers; [ cameronfyfe ];
39 };
40}