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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.0.48";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-BrWJKM7Vkvjlkn3PCBe45epQc2SkjKVlttQF0/AHSls=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-Dkz3QJchUAn4/kQsmQcSfxVrRdiCA2qJSOTszfvE4No=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-tally";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/dtolnay/cargo-tally";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
}
|