buildRustPackage: support checkFlags and checkFlagsArray

This commit is contained in:
Andreas Rammhold
2019-10-21 21:58:36 +02:00
parent b6ba25ce95
commit 7391a7d584
+2 -2
View File
@@ -149,8 +149,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
'';