depot/third_party/nixpkgs/pkgs/by-name/ca/cargo-tally/package.nix

44 lines
968 B
Nix

{
lib,
rustPlatform,
fetchCrate,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-tally";
version = "1.0.59";
src = fetchCrate {
inherit pname version;
hash = "sha256-YYDllHQAoNY/jOUVcHvjkwi38aXBH7dTXjxaOa6sdv0=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-jO/0DS4SRRvw5Ie7LYtLB+dkpA4PvleUMKSFH7EE4E4=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk_11_0.frameworks;
[
DiskArbitration
Foundation
IOKit
]
);
meta = with lib; {
description = "Graph the number of crates that depend on your crate over time";
mainProgram = "cargo-tally";
homepage = "https://github.com/dtolnay/cargo-tally";
changelog = "https://github.com/dtolnay/cargo-tally/releases/tag/${version}";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [
figsoda
matthiasbeyer
];
};
}