2022-12-17 10:02:37 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-tally";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.0.19";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-TlHb974Dtmz5qW+4L3BE6GQ3SbkwtIrZxE6FpJrgNdY=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
cargoSha256 = "sha256-np1rln9tD+J4s410/Pv4/eKAxyzK8qtLoON86JR1T94=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
|
2021-09-22 15:38:15 +00:00
|
|
|
DiskArbitration
|
|
|
|
Foundation
|
|
|
|
IOKit
|
2022-12-17 10:02:37 +00:00
|
|
|
]);
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|