Skip to content

Commit

Permalink
cargo-cross: disable impure unit tests (#352983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Nov 2, 2024
2 parents 877fcd2 + 3801c98 commit e774f2d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions pkgs/development/tools/rust/cargo-cross/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -19,6 +20,11 @@ rustPlatform.buildRustPackage rec {

checkFlags = [
"--skip=docker::shared::tests::directories::test_host"

# The following tests require empty CARGO_BUILD_TARGET env variable, but we
# set it ever since https://github.com/NixOS/nixpkgs/pull/298108.
"--skip=config::tests::test_config::no_env_and_no_toml_default_target_then_none"
"--skip=config::tests::test_config::no_env_but_toml_default_target_then_use_toml"
];

passthru = {
Expand All @@ -29,7 +35,10 @@ rustPlatform.buildRustPackage rec {
description = "Zero setup cross compilation and cross testing";
homepage = "https://github.com/cross-rs/cross";
changelog = "https://github.com/cross-rs/cross/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ otavio ];
mainProgram = "cross";
};
Expand Down

0 comments on commit e774f2d

Please sign in to comment.