nixpkgs/pkgs/development/tools/rust/cargo-mutants/default.nix
2024-04-22 02:07:22 +00:00

37 lines
906 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-mutants";
version = "24.4.0";
src = fetchFromGitHub {
owner = "sourcefrog";
repo = "cargo-mutants";
rev = "v${version}";
hash = "sha256-u59NnxDFQN92BMkm2sHy8OhundFJElJ2H1SgdeLpOMs=";
};
cargoHash = "sha256-7dLpqhT3v7b0I1wmn7Q6IL1M5Ul/Mu9xxrdwlI2xKAs=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
# too many tests require internet access
doCheck = false;
meta = with lib; {
description = "A 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 ];
};
}