mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
Merge pull request #152197 from K900/patch-3
rust/hooks: ensure the build output ends up in the right place
This commit is contained in:
commit
61d501ee3f
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ cargoBuildHook() {
|
|||
runHook preBuild
|
||||
|
||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||
# ensure the output doesn't end up in the subdirectory
|
||||
export CARGO_TARGET_DIR="$(pwd)/target"
|
||||
|
||||
pushd "${buildAndTestSubdir}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue