nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, rustPlatform
3, fetchFromGitHub
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "cargo-machete";
8 version = "0.5.0";
9
10 src = fetchFromGitHub {
11 owner = "bnjbvr";
12 repo = "cargo-machete";
13 rev = "v${version}";
14 hash = "sha256-AOi4SnFkt82iQIP3bp/9JIaYiqjiEjKvJKUvrLQJTX8=";
15 };
16
17 cargoHash = "sha256-Q/2py0zgCYgnxFpcJD5PfNfIfIEUjtjFPjxDe25f0BQ=";
18
19 # tests require internet access
20 doCheck = false;
21
22 meta = with lib; {
23 description = "A Cargo tool that detects unused dependencies in Rust projects";
24 homepage = "https://github.com/bnjbvr/cargo-machete";
25 changelog = "https://github.com/bnjbvr/cargo-machete/blob/${src.rev}/CHANGELOG.md";
26 license = licenses.mit;
27 maintainers = with maintainers; [ figsoda ];
28 };
29}