2022-12-09 03:08:30 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
|
2021-09-19 15:53:47 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-tally";
|
2024-10-29 16:15:38 +00:00
|
|
|
version = "1.0.50";
|
2021-09-19 15:53:47 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-10-29 16:15:38 +00:00
|
|
|
hash = "sha256-kU2SmD51enAyRzzpPJunMKloKS1m7zwEqk2kMX94s7U=";
|
2021-09-19 15:53:47 +00:00
|
|
|
};
|
|
|
|
|
2024-10-29 16:15:38 +00:00
|
|
|
cargoHash = "sha256-tWMiAb50znyZS77Qcp5dUjPr7qnODjiEFunIyDOde8s=";
|
2021-09-19 15:53:47 +00:00
|
|
|
|
2022-12-09 03:08:30 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
|
2021-09-19 15:53:47 +00:00
|
|
|
DiskArbitration
|
|
|
|
Foundation
|
|
|
|
IOKit
|
2022-12-09 03:08:30 +00:00
|
|
|
]);
|
2021-09-19 15:53:47 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Graph the number of crates that depend on your crate over time";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "cargo-tally";
|
2021-09-19 15:53:47 +00:00
|
|
|
homepage = "https://github.com/dtolnay/cargo-tally";
|
2023-02-18 04:42:30 +00:00
|
|
|
changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
|
2021-09-19 15:53:47 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-08-11 22:41:21 +00:00
|
|
|
maintainers = with maintainers; [ figsoda matthiasbeyer ];
|
2021-09-19 15:53:47 +00:00
|
|
|
};
|
|
|
|
}
|