mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
rustPlatform: cargo test is now called with the same environment variables as cargo build
this means that cargo dependancies will no longer be built twice.
This commit is contained in:
parent
4b2bd47103
commit
683f97e378
@ -38,7 +38,7 @@ cargoCheckHook() {
|
||||
concatTo flagsArray cargoTestFlags checkFlags checkFlagsArray
|
||||
|
||||
echoCmd 'cargoCheckHook flags' "${flagsArray[@]}"
|
||||
cargo test "${flagsArray[@]}"
|
||||
@setEnv@ cargo test "${flagsArray[@]}"
|
||||
|
||||
if [[ -n "${buildAndTestSubdir-}" ]]; then
|
||||
popd
|
||||
|
@ -31,7 +31,7 @@
|
||||
name = "cargo-check-hook.sh";
|
||||
propagatedBuildInputs = [ cargo ];
|
||||
substitutions = {
|
||||
inherit (rust.envVars) rustHostPlatformSpec;
|
||||
inherit (rust.envVars) rustHostPlatformSpec setEnv;
|
||||
};
|
||||
} ./cargo-check-hook.sh) {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user