nixpkgs-suyu/pkgs/build-support/rust
Lily Foster 5a8c65e118
rustPlatform.importCargoLock: fix workspace_root detection
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]: b8f1a366dd/Cargo.toml
2023-12-21 19:40:43 -05:00
..
build-rust-crate Merge pull request #266787 from tvbeat/cargo-manifest-links 2023-11-19 16:14:58 +01:00
build-rust-package lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
fetch-cargo-tarball
hooks lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
lib lib.systems: elaborate Rust metadata 2023-11-09 10:02:24 +01:00
rustc-wrapper rustc: use the wrapper for fastCross sysroot 2023-11-30 09:23:06 +00:00
sysroot
test/import-cargo-lock
default-crate-overrides.nix
fetchcargo-default-config.toml
fetchcrate.nix
import-cargo-lock.nix rustPlatform.importCargoLock: fix workspace_root detection 2023-12-21 19:40:43 -05:00
replace-workspace-values.py rustPlatform.importCargoLock: copy lints from workspace 2023-12-16 05:36:59 +00:00