depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-nextest/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

31 lines
940 B
Nix

{ lib, fetchFromGitHub, rustPlatform, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "cargo-nextest";
version = "0.9.40";
src = fetchFromGitHub {
owner = "nextest-rs";
repo = "nextest";
rev = "cargo-nextest-${version}";
sha256 = "sha256-w6YTnd+v4kvv7e/Zdo4oa1AGfW86Lmjyk4jMeFs/wUE=";
};
cargoSha256 = "sha256-UhxC3Bv8wohO83k+ndhK9yOK2nQpeVYbc1CW5wpb2B4=";
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
cargoTestFlags = [ # TODO: investigate some more why these tests fail in nix
"--"
"--skip=tests_integration::test_relocated_run"
"--skip=tests_integration::test_run"
"--skip=tests_integration::test_run_after_build"
];
meta = with lib; {
description = "Next-generation test runner for Rust projects";
homepage = "https://github.com/nextest-rs/nextest";
license = with licenses; [ mit asl20 ];
maintainers = [ maintainers.ekleog ];
};
}