depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-tally/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

26 lines
727 B
Nix

{ lib, rustPlatform, fetchCrate, stdenv, DiskArbitration, Foundation, IOKit }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
version = "1.0.2";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-m5NLI0C7ett5Fmvs9t1vl2W6h7mjCtEFBc1AzYg9JfY=";
};
cargoSha256 = "sha256-AxjQUyxX5lLFPdEdETvZLHbgMYg/xOo7bcqn1TiDKsE=";
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 ];
};
}