ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-cross / package.nix
blob6e0d246f6146f7705dedc0db7d0c49ee644364d5
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   nix-update-script,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cargo-cross";
10   version = "0.2.5";
12   src = fetchFromGitHub {
13     owner = "cross-rs";
14     repo = "cross";
15     rev = "refs/tags/v${version}";
16     sha256 = "sha256-TFPIQno30Vm5m2nZ2b3d0WPu/98UqANLhw3IZiE5a38=";
17   };
19   cargoHash = "sha256-x+DrKo79R8TAeLVuvIIguQs3gdAHiAQ9dUU2/eZRZ0c=";
21   checkFlags = [
22     "--skip=docker::shared::tests::directories::test_host"
24     # The following tests require empty CARGO_BUILD_TARGET env variable, but we
25     # set it ever since https://github.com/NixOS/nixpkgs/pull/298108.
26     "--skip=config::tests::test_config::no_env_and_no_toml_default_target_then_none"
27     "--skip=config::tests::test_config::no_env_but_toml_default_target_then_use_toml"
28   ];
30   passthru = {
31     updateScript = nix-update-script { };
32   };
34   meta = with lib; {
35     description = "Zero setup cross compilation and cross testing";
36     homepage = "https://github.com/cross-rs/cross";
37     changelog = "https://github.com/cross-rs/cross/blob/v${version}/CHANGELOG.md";
38     license = with licenses; [
39       asl20 # or
40       mit
41     ];
42     maintainers = with maintainers; [ otavio ];
43     mainProgram = "cross";
44   };