Skip to content

Commit c161297

Browse files
authored
cargo-risczero: 0.17.0 -> 1.1.2 (#353953)
2 parents 7a9a124 + 20a0bfb commit c161297

File tree

3 files changed

+54
-42
lines changed

3 files changed

+54
-42
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchCrate,
5+
fetchurl,
6+
rustPlatform,
7+
pkg-config,
8+
openssl,
9+
nix-update-script,
10+
}:
11+
12+
rustPlatform.buildRustPackage rec {
13+
pname = "cargo-risczero";
14+
version = "1.1.2";
15+
16+
src = fetchCrate {
17+
inherit pname version;
18+
hash = "sha256-YZ3yhj1VLxl3Fg/yWhqrZXxIQ7oK6Gdo0NU39oDvoo8=";
19+
};
20+
21+
src-recursion-hash = "28e4eeff7a8f73d27408d99a1e3e8842c79a5f4353e5117ec0b7ffaa7c193612"; # That is from cargoDeps/risc0-circuit-recursion/build.rs
22+
23+
src-recursion = fetchurl {
24+
url = "https://risc0-artifacts.s3.us-west-2.amazonaws.com/zkr/${src-recursion-hash}.zip";
25+
hash = "sha256-KOTu/3qPc9J0CNmaHj6IQseaX0NT5RF+wLf/qnwZNhI="; # This hash should be the same as src-recuresion-hash
26+
};
27+
28+
env = {
29+
RECURSION_SRC_PATH = src-recursion;
30+
};
31+
32+
cargoHash = "sha256-pNgnUtKn2w5rWbgDi0MHZCm9nYPgESL3g7EMaYwoSq4=";
33+
34+
nativeBuildInputs = [
35+
pkg-config
36+
];
37+
38+
buildInputs = [
39+
openssl
40+
];
41+
42+
# The tests require network access which is not available in sandboxed Nix builds.
43+
doCheck = false;
44+
45+
passthru.updateScript = nix-update-script { };
46+
47+
meta = {
48+
description = "Cargo extension to help create, manage, and test RISC Zero projects";
49+
mainProgram = "cargo-risczero";
50+
homepage = "https://risczero.com";
51+
license = with lib.licenses; [ asl20 ];
52+
maintainers = with lib.maintainers; [ cameronfyfe ];
53+
};
54+
}

pkgs/development/tools/rust/cargo-risczero/default.nix

Lines changed: 0 additions & 41 deletions
This file was deleted.

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15469,7 +15469,6 @@ with pkgs;
1546915469
inherit (darwin.apple_sdk.frameworks) Security;
1547015470
};
1547115471
cargo-readme = callPackage ../development/tools/rust/cargo-readme { };
15472-
cargo-risczero = callPackage ../development/tools/rust/cargo-risczero { };
1547315472
cargo-run-bin = callPackage ../development/tools/rust/cargo-run-bin {};
1547415473
cargo-semver-checks = callPackage ../development/tools/rust/cargo-semver-checks { };
1547515474

0 commit comments

Comments
 (0)