@@ -0,0 +1,26 @@
1+{ lib, rustPlatform, fetchCrate, stdenv, DiskArbitration, Foundation, IOKit }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-tally";
5+ version = "1.0.0";
6+
7+ src = fetchCrate {
8+ inherit pname version;
9+ sha256 = "16r60ddrqsss5nagfb5g49md8wwm4zbp9sffbm23bhlqhxh35y0i";
10+ };
11+
12+ cargoSha256 = "0ffq67vy0pa7va8j93g03bralz7lck6ds1hidbpzzkp13pdcgf97";
13+
14+ buildInputs = lib.optionals stdenv.isDarwin [
15+ DiskArbitration
16+ Foundation
17+ IOKit
18+ ];
19+
20+ meta = with lib; {
21+ description = "Graph the number of crates that depend on your crate over time";
22+ homepage = "https://github.com/dtolnay/cargo-tally";
23+ license = with licenses; [ asl20 /* or */ mit ];
24+ maintainers = with maintainers; [ figsoda ];
25+ };
26+}