Skip to content

Commit 8d9b29d

Browse files
committed
feat(pkgs/risc0-rust): Output a toolchain directory, in the format rzup expects
With RISC0 commit 32c29a rzup also becomes a library, and extraction of the rust binary path is done via it.
1 parent d74d4f4 commit 8d9b29d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/risc0-rust/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ stdenv.mkDerivation rec {
1717

1818
installPhase = ''
1919
runHook preInstall
20-
mkdir -p $out
21-
cp -r ./* $out/
20+
21+
mkdir -p "$out"
22+
cp -r ./* "$out/"
23+
24+
mkdir -p "$out/r0.${version}-risc0-rust-x86_64-unknown-linux-gnu"
25+
cp -r ./* "$out/r0.${version}-risc0-rust-x86_64-unknown-linux-gnu"
26+
2227
runHook postInstall
2328
'';
2429

0 commit comments

Comments
 (0)