cargo-deb: run tests in release profile

The `checkType` attribute does not apply after #113193,
and since we're changing tests anyway, let's run them
in the release mode to avoid the need for `checkType`.

This fixes the otherwise broken build.
This commit is contained in:
Ivan Babrou 2021-02-24 19:37:19 -08:00
parent cb5f00db00
commit 9cd5107391

View File

@ -21,11 +21,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1vqnnqn6rzkdi239bh3lk7gaxr7w6v3c4ws4ya1ah04g6v9hkzlw";
checkType = "debug";
preCheck = ''
substituteInPlace tests/command.rs \
--replace 'target/debug' "target/${rust.toRustTarget stdenv.buildPlatform}/debug"
--replace 'target/debug' "target/${rust.toRustTarget stdenv.buildPlatform}/release"
'';
meta = with lib; {