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:
parent
cb5f00db00
commit
9cd5107391
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user