mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
5a8c65e118
Prior to this change, the `importCargoLock` git dependency builder
assumed that the workspace root that needed to be passed to
`replace-workspace-values` will always be the root directory of the git
repository.
This is not always the case as independent workspace roots may be used
from subdirectories, and packages be referenced via paths. An example of
this is [1], where the `iced` subdirectory is its own independent
workspace, and workspace values for packages within it should be pulled
from the `iced` subdirectory as the workspace root, not from the
top-level of the fetched repository.
[1]:
|
||
---|---|---|
.. | ||
build-rust-crate | ||
build-rust-package | ||
fetch-cargo-tarball | ||
hooks | ||
lib | ||
rustc-wrapper | ||
sysroot | ||
test/import-cargo-lock | ||
default-crate-overrides.nix | ||
fetchcargo-default-config.toml | ||
fetchcrate.nix | ||
import-cargo-lock.nix | ||
replace-workspace-values.py |