2022-06-26 10:26:21 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, stdenv, Security }:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-nextest";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.9.34";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextest-rs";
|
|
|
|
repo = "nextest";
|
|
|
|
rev = "cargo-nextest-${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-lGsQcOK/sm6/EEgB/o/zVWJfjIUppH08s/gwqejzS+U=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
cargoSha256 = "sha256-lj8spttijptuC1y3MfKBAQ3SAKW3D5tOmI8+1+wsWE0=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
cargoTestFlags = [ # TODO: investigate some more why these tests fail in nix
|
|
|
|
"--"
|
|
|
|
"--skip=tests_integration::test_relocated_run"
|
|
|
|
"--skip=tests_integration::test_run"
|
|
|
|
"--skip=tests_integration::test_run_after_build"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Next-generation test runner for Rust projects";
|
|
|
|
homepage = "https://github.com/nextest-rs/nextest";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = [ maintainers.ekleog ];
|
|
|
|
};
|
|
|
|
}
|