We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10dea37 commit 0959819Copy full SHA for 0959819
packages/jolt/default.nix
@@ -53,17 +53,16 @@ in
53
# Different toolchain is used when guest has std features
54
# https://github.com/a16z/jolt/blob/fa45507aaddb1815bafd54332e4b14173a7f8699/jolt-core/src/host/mod.rs#L132-L134
55
postInstall = ''
56
- rm $out/bin/rustc
57
- cat <<EOF > $out/bin/rustc
+ rm $out/bin/cargo
+ cat <<EOF > $out/bin/cargo
58
#!/bin/sh
59
if [ -z "\''${RUSTUP_TOOLCHAIN+x}" ]
60
then
61
- ${jolt-guest-rust}/rust/build/host/stage2/bin/rustc \$@
62
- else
63
- ${rust-toolchain}/bin/rustc \$@
+ export PATH="${jolt-guest-rust}/rust/build/host/stage2/bin:$PATH"
64
fi
+ ${rust-toolchain}/bin/cargo \$@
65
EOF
66
- chmod +x $out/bin/rustc
+ chmod +x $out/bin/cargo
67
'';
68
69
doCheck = false;
0 commit comments