depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-tally/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

27 lines
823 B
Nix

{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
version = "1.0.28";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-vPOQC/bpjmjQzHZZHVMTil2XqIbKhxb7461dWCgySQk=";
};
cargoSha256 = "sha256-SL9fIZpMG+XfNHV0xEQyrm13MphIWv6I/cFUOVrA6bA=";
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";
changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda ];
};
}