Skip to content

Commit 1c72f90

Browse files
committed
WIP: feat(pkgs/risc0): Upgrade unstable-2025-03-12 to v3.0.3 (2025-08-28)
This is partial fix since `postPatch` script has not been adapted to the differences: before: https://github.com/risc0/risc0/blob/2db67acadc4e1283f08993b5dcfcfc7afba6bbbd/rzup/src/paths.rs#L27 after: https://github.com/risc0/risc0/blob/v3.0.3/rzup/src/paths.rs
1 parent f3641eb commit 1c72f90

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

packages/risc0/default.nix

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ let
1616
# https://github.com/risc0/risc0/blob/main/risc0/circuit/recursion/build.rs
1717
recursion-zkr =
1818
let
19-
hash' = "1b80b77894fbd489262e327478d02e83262c4bf189b0873fda3f0c85cdbfc8d1";
19+
hash = "744b999f0a35b3c86753311c7efb2a0054be21727095cf105af6ee7d3f4d8849";
2020
in
21-
fetchurl rec {
22-
url = "https://risc0-artifacts.s3.us-west-2.amazonaws.com/zkr/${hash'}.zip";
23-
hash = "sha256-G4C3eJT71IkmLjJ0eNAugyYsS/GJsIc/2j8Mhc2/yNE=";
21+
fetchurl {
22+
url = "https://risc0-artifacts.s3.us-west-2.amazonaws.com/zkr/${hash}.zip";
23+
hash = builtins.convertHash {
24+
inherit hash;
25+
toHashFormat = "sri";
26+
hashAlgo = "sha256";
27+
};
2428
};
2529

2630
commonArgs = rec {
2731
pname = "risc0";
28-
version = "unstable-2025-03-12";
32+
version = "3.0.3";
2933

3034
nativeBuildInputs = [
3135
autoPatchelfHook
@@ -37,14 +41,14 @@ let
3741
src = fetchFromGitHub {
3842
owner = "risc0";
3943
repo = "risc0";
40-
rev = "2db67acadc4e1283f08993b5dcfcfc7afba6bbbd";
41-
hash = "sha256-eMFoz821x2NjibbTPF/i6rqRbqZ4g6njVDHc/udIDnA=";
44+
rev = "v${version}";
45+
hash = "sha256-39vVvvGcWbQOBm8G08GvjpSklMCjcGNq2+UabfU1+gs=";
4246
};
4347
};
4448

4549
rust-toolchain = rustFromToolchainFile {
4650
dir = commonArgs.src;
47-
sha256 = "sha256-s1RPtyvDGJaX/BisLT+ifVfuhDT1nZkZ1NcK8sbwELM=";
51+
sha256 = "sha256-+9FmLhAOezBZCOziO0Qct1NOrfpjNsXxc/8I0c7BdKE=";
4852
};
4953
crane = craneLib.overrideToolchain rust-toolchain;
5054
cargoArtifacts = crane.buildDepsOnly commonArgs;

0 commit comments

Comments
 (0)