nixpkgs/pkgs/development/tools/rust/cargo-machete/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
774 B
Nix
Raw Normal View History

2023-03-17 15:26:28 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-machete";
version = "0.6.0";
2023-03-17 15:26:28 +00:00
src = fetchFromGitHub {
owner = "bnjbvr";
repo = "cargo-machete";
rev = "v${version}";
hash = "sha256-LDhC/vwhyY4KD1RArCxl+nZl5IVj0zAjxlRLwWpnTvI=";
2023-03-17 15:26:28 +00:00
};
cargoHash = "sha256-vygAznYd/mtArSkLjoIpIxS4RiE3drRfKwNhD1w7KoY=";
2023-03-17 15:26:28 +00:00
# tests require internet access
doCheck = false;
meta = with lib; {
description = "A Cargo tool that detects unused dependencies in Rust projects";
homepage = "https://github.com/bnjbvr/cargo-machete";
changelog = "https://github.com/bnjbvr/cargo-machete/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda matthiasbeyer ];
2023-03-17 15:26:28 +00:00
};
}