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-16 21:55:25 +11:00
parent 7fcce2a9f0
commit 8b644c5826

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