nixpkgs-suyu/pkgs/development/tools/rust/cargo-nextest/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1 KiB
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
2022-03-09 19:25:13 +01:00
rustPlatform.buildRustPackage rec {
pname = "cargo-nextest";
version = "0.9.49";
2022-03-09 19:25:13 +01:00
src = fetchFromGitHub {
owner = "nextest-rs";
repo = "nextest";
rev = "cargo-nextest-${version}";
sha256 = "sha256-QonjtUw9CAEcGkjyq5Iv5CTo4gGUuFXSS2QVi/Ub2j4=";
2022-03-09 19:25:13 +01:00
};
cargoSha256 = "sha256-+L6+hRCnYqWmO5G1nctT0Ly74DhvUYhMvQroSDFMREg=";
2022-03-09 19:25:13 +01:00
2022-06-25 22:18:57 +02:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
cargoBuildFlags = [ "-p" "cargo-nextest" ];
cargoTestFlags = [ "-p" "cargo-nextest" ];
2022-03-09 19:25:13 +01:00
2022-11-06 04:43:27 +01:00
# TODO: investigate some more why these tests fail in nix
checkFlags = [
"--skip=tests_integration::test_list"
"--skip=tests_integration::test_relocated_run"
"--skip=tests_integration::test_run"
];
2022-03-09 19:25:13 +01:00
meta = with lib; {
description = "Next-generation test runner for Rust projects";
homepage = "https://github.com/nextest-rs/nextest";
changelog = "https://nexte.st/CHANGELOG.html";
2022-03-09 19:25:13 +01:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ ekleog figsoda ];
2022-03-09 19:25:13 +01:00
};
}