2022-10-21 18:38:19 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, CoreFoundation, CoreServices }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-modules";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.5.14";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-urbyWNbmj2qEO4JJ/waRXGRJ9L5KgwsRB5Wh9yib8zc=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
cargoSha256 = "sha256-3OxO+j5UuPEg9xNmN+kIqpdq6fVnFpgx5xCaMNue52g=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreFoundation
|
|
|
|
CoreServices
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
# the crate version doesn't include all the files required to run tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
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 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ figsoda rvarago ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|