git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #138542 from figsoda/cargo-tally
b7255cdfigsoda
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;
12435 cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { };
12435 cargo-spellcheck = callPackage ../development/tools/rust/cargo-spellcheck { };
12436 cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
12436 cargo-sweep = callPackage ../development/tools/rust/cargo-sweep { };
12437 cargo-sync-readme = callPackage ../development/tools/rust/cargo-sync-readme {};
12437 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+ };
12438 cargo-udeps = callPackage ../development/tools/rust/cargo-udeps {
12441 cargo-udeps = callPackage ../development/tools/rust/cargo-udeps {
12439 inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
12442 inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
12440 };
12443 };