From 8b644c5826f9e0c62f84fa7844e369fca9a41a96 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Tue, 16 Feb 2016 21:55:25 +1100 Subject: [PATCH] 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. --- pkgs/build-support/rust/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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