diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index e0d45141778..79e4366eebe 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