diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index e0d451417780..79e4366eebe1 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -75,7 +75,7 @@ in stdenv.mkDerivation (args // { ( set -euo pipefail - cd ../deps/registry/src/* + cd $NIX_BUILD_TOP/deps/registry/src/* for script in $patchRegistryDeps/*; do # Run in a subshell so that directory changes and shell options don't