1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
4 pname = "cargo-nextest";
7 src = fetchFromGitHub {
10 rev = "cargo-nextest-${version}";
11 hash = "sha256-LC+0s38ufmMrhNaKSn13jka/M7PG1+gJnqZCXJ7ef6I=";
14 cargoHash = "sha256-E/bsVbSdFr1LMrIewsh15Vuk4Dt5UwETLCIhE7TT3kA=";
16 buildInputs = lib.optionals stdenv.isDarwin [
17 darwin.apple_sdk.frameworks.SystemConfiguration
20 cargoBuildFlags = [ "-p" "cargo-nextest" ];
21 cargoTestFlags = [ "-p" "cargo-nextest" ];
23 # TODO: investigate some more why these tests fail in nix
25 "--skip=tests_integration::test_list"
26 "--skip=tests_integration::test_relocated_run"
27 "--skip=tests_integration::test_run"
31 description = "Next-generation test runner for Rust projects";
32 mainProgram = "cargo-nextest";
33 homepage = "https://github.com/nextest-rs/nextest";
34 changelog = "https://nexte.st/CHANGELOG.html";
35 license = with licenses; [ mit asl20 ];
36 maintainers = with maintainers; [ ekleog figsoda matthiasbeyer ];