mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-TFPIQno30Vm5m2nZ2b3d0WPu/98UqANLhw3IZiE5a38=";
|
|
};
|
|
|
|
cargoHash = "sha256-x+DrKo79R8TAeLVuvIIguQs3gdAHiAQ9dUU2/eZRZ0c=";
|
|
|
|
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 = with lib; {
|
|
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
|
|
];
|
|
maintainers = with maintainers; [ otavio ];
|
|
mainProgram = "cross";
|
|
};
|
|
}
|