nixpkgs/pkgs/build-support/rust/build-rust-crate
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
..
test buildRustCrate: set CARGO_FEATURE_* when running the build script 2020-06-13 14:09:06 +02:00
build-crate.nix buildRustCrate: set CARGO_FEATURE_* when running the build script 2020-06-13 14:09:06 +02:00
configure-crate.nix buildRustCrate: set CARGO_FEATURE_* when running the build script 2020-06-13 14:09:06 +02:00
default.nix buildRustCrate: set CARGO_FEATURE_* when running the build script 2020-06-13 14:09:06 +02:00
helpers.nix buildRustCrate: fixup usage of builtins.filterSource 2020-01-07 00:49:48 +01:00
install-crate.nix buildRustCrate: Add tests for checking files in outputs. 2020-03-29 13:00:21 +02:00
lib.sh buildRustCrate: Add tests for checking files in outputs. 2020-03-29 13:00:21 +02:00
log.nix buildRustCrate: refactor colored logging 2020-03-09 14:26:28 +01:00