nixpkgs/pkgs/by-name/ca/cargo-machete/package.nix

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

31 lines
807 B
Nix
Raw Normal View History

2023-03-17 15:26:28 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-machete";
2024-09-26 12:25:54 +00:00
version = "0.7.0";
2023-03-17 15:26:28 +00:00
src = fetchFromGitHub {
owner = "bnjbvr";
repo = "cargo-machete";
rev = "v${version}";
2024-09-26 12:25:54 +00:00
hash = "sha256-qOWa2Q7B073b5UssRnUkk24+PkIzl+czWGCcORUc55w=";
2023-03-17 15:26:28 +00:00
};
2024-09-26 12:25:54 +00:00
cargoHash = "sha256-q5oC2leWjsCFrwJ9ITeEjxtnnvfDrGyyKNR4kAXBQ6Q=";
2023-03-17 15:26:28 +00:00
# tests require internet access
doCheck = false;
meta = with lib; {
description = "Cargo tool that detects unused dependencies in Rust projects";
mainProgram = "cargo-machete";
2023-03-17 15:26:28 +00:00
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
};
}