depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-modules/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

28 lines
815 B
Nix

{ lib, rustPlatform, fetchCrate, stdenv, CoreFoundation, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.5.12";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-Fm3D1VnudZhXpH7ymQNpViwwODvXYeO/e2xT3XXfclk=";
};
cargoSha256 = "sha256-PiYonf+aD+Q3mWtP+7NDu9wu3vKrMRAlYh94fXLMWD8=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
CoreServices
];
# the crate version doesn't include all the files required to run tests
doCheck = false;
meta = with lib; {
description = "A cargo plugin for showing a tree-like overview of a crate's modules";
homepage = "https://github.com/regexident/cargo-modules";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ figsoda rvarago ];
};
}