git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #138542 from figsoda/cargo-tally

cargo-tally: init at 1.0.0

commitb7255cd8b96994ebfc20810f3cad4b6e871af7f4 authorfigsoda <figsoda@pm.me> dateSun 19 Sep 2021, 20:33 (5 years ago) parent6242cedabbbc07
2 files changed+29
pkgs/development/tools/rust/cargo-tally/default.nix+26 pkgs/top-level/all-packages.nix+3
pkgs/development/tools/rust/cargo-tally/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, rustPlatform, fetchCrate, stdenv, DiskArbitration, Foundation, IOKit }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cargo-tally";
5+ version = "1.0.0";
6+
7+ src = fetchCrate {
8+ inherit pname version;
9+ sha256 = "16r60ddrqsss5nagfb5g49md8wwm4zbp9sffbm23bhlqhxh35y0i";
10+ };
11+
12+ cargoSha256 = "0ffq67vy0pa7va8j93g03bralz7lck6ds1hidbpzzkp13pdcgf97";
13+
14+ buildInputs = lib.optionals stdenv.isDarwin [
15+ DiskArbitration
16+ Foundation
17+ IOKit
18+ ];
19+
20+ meta = with lib; {
21+ description = "Graph the number of crates that depend on your crate over time";
22+ homepage = "https://github.com/dtolnay/cargo-tally";
23+ license = with licenses; [ asl20 /* or */ mit ];
24+ maintainers = with maintainers; [ figsoda ];
25+ };
26+}
pkgs/top-level/all-packages.nix+3
@@ -12435,6 +12435,9 @@ with pkgs;
1243512435 cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { };
1243612436 cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
1243712437 cargo-sync-readme = callPackage ../development/tools/rust/cargo-sync-readme {};
12438+ cargo-tally = callPackage ../development/tools/rust/cargo-tally {
12439+ inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation IOKit;
12440+ };
1243812441 cargo-udeps = callPackage ../development/tools/rust/cargo-udeps {
1243912442 inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
1244012443 };