2021-09-22 15:38:15 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, DiskArbitration, Foundation, IOKit }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-tally";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "1.0.16";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-AOvZEfDjsDAj4ZlrTB5a7dregPffhE4/xpdy1ZtvZCI=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
cargoSha256 = "sha256-94f76eHYaMoDEWATtvap4wPbpJkLq49Fsp579eoxlBs=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
DiskArbitration
|
|
|
|
Foundation
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Graph the number of crates that depend on your crate over time";
|
|
|
|
homepage = "https://github.com/dtolnay/cargo-tally";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|