2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-nextest";
|
|
|
|
version = "0.9.70";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nextest-rs";
|
|
|
|
repo = "nextest";
|
|
|
|
rev = "cargo-nextest-${version}";
|
|
|
|
hash = "sha256-YTeKcdUszI/0RCAq6Gcakl3hfUSUo3CfVCMod/IPYhw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-FH9ODkK84bPPYyHP4kKcHKWpJ3FV1NC8S/NQFvV63Gw=";
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
cargoBuildFlags = [
|
|
|
|
"-p"
|
|
|
|
"cargo-nextest"
|
|
|
|
];
|
|
|
|
cargoTestFlags = [
|
|
|
|
"-p"
|
|
|
|
"cargo-nextest"
|
|
|
|
];
|
2024-05-02 00:46:19 +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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Next-generation test runner for Rust projects";
|
|
|
|
mainProgram = "cargo-nextest";
|
|
|
|
homepage = "https://github.com/nextest-rs/nextest";
|
|
|
|
changelog = "https://nexte.st/CHANGELOG.html";
|
2024-06-30 08:12:46 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
asl20
|
|
|
|
];
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
ekleog
|
|
|
|
figsoda
|
|
|
|
matthiasbeyer
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
}
|