depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-tally/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

26 lines
741 B
Nix

{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
version = "1.0.19";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-TlHb974Dtmz5qW+4L3BE6GQ3SbkwtIrZxE6FpJrgNdY=";
};
cargoSha256 = "sha256-np1rln9tD+J4s410/Pv4/eKAxyzK8qtLoON86JR1T94=";
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
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 ];
};
}