maturinBuildHook: use dist dir relative to cargoRoot

With `cargoRoot` set to a subdirectory of the source, where the
Cargo.{lock,toml} are found, the final mv would previously fail, since
the build results appear relative to cargoRoot, not to the original
build directory.

+1 -1
+1 -1
pkgs/build-support/rust/hooks/maturin-build-hook.sh
··· 25 25 26 26 # Move the wheel to dist/ so that regular Python tooling can find it. 27 27 mkdir -p dist 28 - mv target/wheels/*.whl dist/ 28 + mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/ 29 29 30 30 # These are python build hooks and may depend on ./dist 31 31 runHook postBuild