rust: fix prePatch phase fail when sourceRoot set

We want to go up more than a single directory if we're in a nested one.
This commit is contained in:
Brian McKenna
2016-02-17 07:28:26 +11:00
parent 7fcce2a9f0
commit 8b644c5826
+1 -1
View File
@@ -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