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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
866 B
Nix
Raw Normal View History

2022-12-09 03:08:30 +00:00
{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
2021-09-19 15:53:47 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
2024-04-27 12:27:45 +00:00
version = "1.0.44";
2021-09-19 15:53:47 +00:00
src = fetchCrate {
inherit pname version;
2024-04-27 12:27:45 +00:00
hash = "sha256-CLMMrzEvw0QrlDPUfM67thzSXZ6hOfNw7mUVNdMcRgA=";
2021-09-19 15:53:47 +00:00
};
2024-04-27 12:27:45 +00:00
cargoHash = "sha256-XMuApConypaF6PNylDx9Dg2e1VvPy8m///Pnk/S14g8=";
2021-09-19 15:53:47 +00:00
2022-12-09 03:08:30 +00:00
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
2021-09-19 15:53:47 +00:00
DiskArbitration
Foundation
IOKit
2022-12-09 03:08:30 +00:00
]);
2021-09-19 15:53:47 +00:00
meta = with lib; {
description = "Graph the number of crates that depend on your crate over time";
mainProgram = "cargo-tally";
2021-09-19 15:53:47 +00:00
homepage = "https://github.com/dtolnay/cargo-tally";
changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
2021-09-19 15:53:47 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda matthiasbeyer ];
2021-09-19 15:53:47 +00:00
};
}