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.

36 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
2022-03-09 18:25:13 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-nextest";
version = "0.9.57";
2022-03-09 18:25:13 +00:00
src = fetchFromGitHub {
owner = "nextest-rs";
repo = "nextest";
rev = "cargo-nextest-${version}";
hash = "sha256-vtKe0cl9PxZgc1zUJQI1YCQm4cRHmzqlBEC4RGUxM44=";
2022-03-09 18:25:13 +00:00
};
cargoHash = "sha256-o7nuDoBpSst84jyAVfrE8pLoYcKMF922r39G+gruBUo=";
2022-03-09 18:25:13 +00:00
2022-06-25 20:18:57 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
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 ];
2022-03-09 18:25:13 +00:00
};
}