1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00
nixpkgs/pkgs/build-support/rust
Peter Kolloch baa3d6f43b
buildRustCrate: Make CARGO_MANIFEST_DIR absolute
While it is not obvious from the source, cargo sets CARGO_MANIFEST_DIR to an absolute directory. This let to a build problem with the popular "tera" crate using the "pest" crate.

## Cargo details

The variable is set here:

f7c91ba622/src/cargo/core/compiler/compilation.rs (L229)

and computed from the `manifest_path`:

f7c91ba622/src/cargo/core/package.rs (L163)

The manifest path is also exported via `cargo metadata` where you can see that it is absolute.
2019-03-03 12:02:26 +01:00
..
build-rust-crate buildRustCrate: Make CARGO_MANIFEST_DIR absolute 2019-03-03 12:02:26 +01:00
cargo-vendor treewide: Remove usage of remaining redundant platform compatability stuff 2018-08-30 17:20:32 -04:00
patch-registry-deps
cargo-vendor-normalise.py fetchcargo: add type checking to cargo-vendor-normalise.py 2018-09-11 23:44:14 +02:00
carnix.nix Carnix: 0.9.7 -> 0.9.8 2019-02-24 19:29:13 +00:00
crates-io.nix Carnix: 0.9.7 -> 0.9.8 2019-02-24 19:29:13 +00:00
default-crate-overrides.nix defaultCrateOverrides: foundationdb native dependencies 2018-11-17 19:28:48 -06:00
default.nix makeRustPlatform: refactor to make it easier to understand 2018-11-21 12:44:58 +00:00
fetchcargo-default-config.toml fectchcargo: don't break old sha256 2018-09-11 23:44:14 +02:00
fetchcargo.nix fetchcargo: fixed config installation path 2018-12-14 16:23:33 +03:00
fetchcrate.nix add fetchCrate function to fetch rust crates 2017-12-12 04:58:45 -06:00
make-rust-platform.nix makeRustPlatform: refactor to make it easier to understand 2018-11-21 12:44:58 +00:00