nixpkgs/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.

38 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-23 15:40:32 +00:00
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
2022-03-09 18:25:13 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-nextest";
2024-01-11 08:02:31 +00:00
version = "0.9.67";
2022-03-09 18:25:13 +00:00
src = fetchFromGitHub {
owner = "nextest-rs";
repo = "nextest";
rev = "cargo-nextest-${version}";
2024-01-11 08:02:31 +00:00
hash = "sha256-M2WkgECTAKux+sq+1rYt2rg/LP4ctMMprY3MsBO5cn4=";
2022-03-09 18:25:13 +00:00
};
2024-01-11 08:02:31 +00:00
cargoHash = "sha256-hJAsmT8T3YGSWjishSQeVMFty6HmdNewRR9nr66fRN0=";
2022-03-09 18:25:13 +00:00
2023-10-23 15:40:32 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
2022-06-25 20:18:57 +00:00
cargoBuildFlags = [ "-p" "cargo-nextest" ];
cargoTestFlags = [ "-p" "cargo-nextest" ];
2022-03-09 18:25:13 +00:00
2022-11-06 03:43:27 +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-09 18:25:13 +00: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 18:25:13 +00:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ ekleog figsoda matthiasbeyer ];
2022-03-09 18:25:13 +00:00
};
}