nixpkgs/pkgs/build-support/rust
Daniël de Kok fe50bab788 buildRustCrate: set CARGO_FEATURE_* when running the build script
Cargo sets `CARGO_FEATURE_*` for all features when running a build
script:

https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts

Some crates have build scripts (e.g. openblas-src) that rely on the
feature variables being properly set.

Since we now need several representations of features, this change
also updates `createFeatures` to be a list of features, rather than
`rustc` feature arguments. `configureCrate` and `buildCrate` then
build the required representations as-needed.

Fixes #68978
2020-06-13 14:09:06 +02:00
..
build-rust-crate buildRustCrate: set CARGO_FEATURE_* when running the build script 2020-06-13 14:09:06 +02:00
patch-registry-deps
cargo-vendor-normalise.py
carnix.nix
crates-io.nix
default-crate-overrides.nix cargo-vendor: drop 2019-09-22 20:20:20 -05:00
default.nix rustPlatform: fix cross-compiling by using native diff 2020-06-08 10:05:00 +05:30
fetchcargo-default-config.toml
fetchCargoTarball.nix fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir 2020-02-10 10:17:29 -05:00
fetchcrate.nix