Unverified Commit e774f2d7 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

cargo-cross: disable impure unit tests (#352983)

parents 877fcd28 3801c989
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
@@ -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 = {
@@ -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";
  };