nixpkgs/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 rustPlatform.fetchCargoTarball: remove explicit sparse protocol 2023-06-02 21:28:57 -04:00
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 build-support/rust/sysroot: let cargo-src crate become no_std 2023-03-12 12:24:23 +01:00
test/import-cargo-lock tests.importCargoLock.maturin: reexport maturin.tests.pyo3 2023-06-19 10:42:24 -04:00
default-crate-overrides.nix default-crate-overrides: add libseat-sys 2023-08-26 01:08:29 -07:00
fetchcargo-default-config.toml
fetchcrate.nix fetchCrate: fix registryDl 2023-05-28 13:20:03 -04:00
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