2022-11-04 12:27:35 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-nextest";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "0.9.44";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextest-rs";
|
|
|
|
repo = "nextest";
|
|
|
|
rev = "cargo-nextest-${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
sha256 = "sha256-hEBRwezymduUlPZTAHAmK5Xkc/6nGr/JDL5TDWUiZO0=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
cargoSha256 = "sha256-i7XYDy9NVOszanCGDaoPkc6z5DV8vm6TsekqBkV5eRA=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
cargoBuildFlags = [ "-p" "cargo-nextest" ];
|
|
|
|
cargoTestFlags = [ "-p" "cargo-nextest" ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-11-21 17:40:18 +00: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-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Next-generation test runner for Rust projects";
|
|
|
|
homepage = "https://github.com/nextest-rs/nextest";
|
2022-11-04 12:27:35 +00:00
|
|
|
changelog = "https://nexte.st/CHANGELOG.html";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ ekleog figsoda ];
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|