bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
36 lines
904 B
Nix
36 lines
904 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-mutants";
|
|
version = "24.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sourcefrog";
|
|
repo = "cargo-mutants";
|
|
rev = "v${version}";
|
|
hash = "sha256-qKgHlFb7sraXTpqf6QsOspzHGWtVZAUSOl3rl6pqQJk=";
|
|
};
|
|
|
|
cargoHash = "sha256-h9nhE7pSwxE2NKJQtlA6Exwh36pC6Lp0y3u0AEh39N4=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
# too many tests require internet access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Mutation testing tool for Rust";
|
|
mainProgram = "cargo-mutants";
|
|
homepage = "https://github.com/sourcefrog/cargo-mutants";
|
|
changelog = "https://github.com/sourcefrog/cargo-mutants/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
};
|
|
}
|