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 dc7c773 commit 37c92f7Copy full SHA for 37c92f7
zkvmLib.nix
@@ -147,6 +147,9 @@ in {
147
buildGuestPhase = ''
148
export INPUTS_DIR="$PWD/guests/${guest}"
149
export ZKVM="${args.pname}" GUEST="${guest}"
150
+ OLD_PATH="$PATH"
151
+
152
+ ${if args ? guestToolchain then "export PATH=\"${args.guestToolchain}/bin:$PATH\"" else ""}
153
154
pushd zkvms/${args.pname}/guest
155
runHook preBuildGuest
@@ -157,6 +160,7 @@ in {
157
160
158
161
${if args ? guestTarget then "ln -s ../../guest/target/${args.guestTarget}/release/guest ../host/src/guest" else ""}
159
162
unset RUSTUP_TOOLCHAIN RUSTFLAGS CARGO_ENCODED_RUSTFLAGS
163
+ export PATH="$OLD_PATH"
164
165
runHook postBuildGuest
166
popd
0 commit comments