Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-cross";
|
|
version = "0.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cross-rs";
|
|
repo = "cross";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-TFPIQno30Vm5m2nZ2b3d0WPu/98UqANLhw3IZiE5a38=";
|
|
};
|
|
|
|
cargoHash = "sha256-omk9UqijrQQ49AYEQjJ+iTT1M0GW7gJD+oG8xAL243A=";
|
|
|
|
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 = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
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 lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ otavio ];
|
|
mainProgram = "cross";
|
|
};
|
|
}
|