nixpkgs/pkgs/development/tools/rust/cargo-tally/default.nix

27 lines
727 B
Nix
Raw Normal View History

2021-09-19 16:53:47 +01:00
{ lib, rustPlatform, fetchCrate, stdenv, DiskArbitration, Foundation, IOKit }:
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
2022-01-07 14:52:51 +00:00
version = "1.0.2";
2021-09-19 16:53:47 +01:00
src = fetchCrate {
inherit pname version;
2022-01-07 14:52:51 +00:00
sha256 = "sha256-m5NLI0C7ett5Fmvs9t1vl2W6h7mjCtEFBc1AzYg9JfY=";
2021-09-19 16:53:47 +01:00
};
2022-01-07 14:52:51 +00:00
cargoSha256 = "sha256-AxjQUyxX5lLFPdEdETvZLHbgMYg/xOo7bcqn1TiDKsE=";
2021-09-19 16:53:47 +01:00
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 ];
};
}