1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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.
This commit is contained in:
Martin Weinelt 2023-12-07 04:46:06 +01:00
parent 38d1116c18
commit 8742c0cd2e
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -25,7 +25,7 @@ maturinBuildHook() {
# Move the wheel to dist/ so that regular Python tooling can find it.
mkdir -p dist
mv target/wheels/*.whl dist/
mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/
# These are python build hooks and may depend on ./dist
runHook postBuild