buildRustPackage: support checkFlags and checkFlagsArray

(cherry picked from commit 7391a7d584)
This commit is contained in:
Andreas Rammhold
2019-07-25 12:34:22 +02:00
parent 0141bd3bcf
commit b22fe375ab

View File

@@ -126,8 +126,8 @@ stdenv.mkDerivation (args // {
checkPhase = args.checkPhase or ''
runHook preCheck
echo "Running cargo test"
cargo test
echo "Running cargo cargo test -- ''${checkFlags} ''${checkFlagsArray+''${checkFlagsArray[@]}}"
cargo test -- ''${checkFlags} ''${checkFlagsArray+"''${checkFlagsArray[@]}"}
runHook postCheck
'';