11 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-shlu6X2JzFU8xCo6yXSHZUxe+XAvzfwuQrWv/ck1a3E=";
21 buildAndTestSubdir = "risc0/r0vm";
30 ] ++ lib.optionals stdenv.isDarwin [
31 darwin.apple_sdk.frameworks.SystemConfiguration
36 cargoHash = "sha256-xFiCNskX2zsAmqM604rg5oko4owWZYMY6jNNrJH5kJ8=";
40 # see https://github.com/risc0/risc0/blob/v1.0.3/risc0/circuit/recursion/build.rs
41 sha256Hash = "4e8496469e1efa00efb3630d261abf345e6b2905fb64b4f3a297be88ebdf83d2";
42 recursionZkr = fetchurl {
43 name = "recursion_zkr.zip";
44 url = "https://risc0-artifacts.s3.us-west-2.amazonaws.com/zkr/${sha256Hash}.zip";
45 sha256 = "sha256-ToSWRp4e+gDvs2MNJhq/NF5rKQX7ZLTzope+iOvfg9I=";
49 ln -sf ${recursionZkr} ./risc0/circuit/recursion/src/recursion_zkr.zip
53 description = "RISC Zero zero-knowledge VM";
54 homepage = "https://github.com/risc0/risc0";
55 changelog = "https://github.com/risc0/risc0/blob/${src.rev}/CHANGELOG.md";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ marijanp ];