2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-cross";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.2.5";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-04 12:14:45 +00:00
|
|
|
owner = "cross-rs";
|
2021-03-09 03:18:52 +00:00
|
|
|
repo = "cross";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-TFPIQno30Vm5m2nZ2b3d0WPu/98UqANLhw3IZiE5a38=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
cargoSha256 = "sha256-x+DrKo79R8TAeLVuvIIguQs3gdAHiAQ9dUU2/eZRZ0c=";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=docker::shared::tests::directories::test_host"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Zero setup cross compilation and cross testing";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://github.com/cross-rs/cross";
|
|
|
|
changelog = "https://github.com/cross-rs/cross/blob/v${version}/CHANGELOG.md";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ otavio ];
|
2021-09-22 15:38:15 +00:00
|
|
|
mainProgram = "cross";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
}
|