nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-tally";
5 version = "1.0.26";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-ojfDujEnwMwzgGklrR5iYJzRzOwn08vmAC1/v6N93kg=";
10 };
11
12 cargoSha256 = "sha256-aYZsMyMz5IpkOontFQ2g09F+UjTmluOAlrbD+4etxKw=";
13
14 buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
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 changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
24 license = with licenses; [ asl20 /* or */ mit ];
25 maintainers = with maintainers; [ figsoda ];
26 };
27}