2022-12-17 10:02:37 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-modules";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.16.8";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regexident";
|
|
|
|
repo = pname;
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-F1hVKktU9zhdxXWhpLgymehJQlOX6WbXL2cqQGB+Y5k=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-j3AYWKq7SrlNlsY7A80iwcWKW8wi6hx0U9UwDIQkXZs=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2022-12-17 10:02:37 +00:00
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=cfg_test::smoke"
|
|
|
|
"--skip=colors::ansi::smoke"
|
|
|
|
"--skip=colors::plain::smoke"
|
|
|
|
"--skip=colors::truecolor::smoke"
|
|
|
|
"--skip=focus_on::glob_path::smoke"
|
|
|
|
"--skip=focus_on::self_path::smoke"
|
|
|
|
"--skip=focus_on::simple_path::smoke"
|
|
|
|
"--skip=focus_on::use_tree::smoke"
|
|
|
|
"--skip=functions::function_body"
|
|
|
|
"--skip=functions::function_inputs"
|
|
|
|
"--skip=functions::function_outputs"
|
|
|
|
"--skip=max_depth::depth_2::smoke"
|
|
|
|
"--skip=selection::no_fns::smoke"
|
|
|
|
"--skip=selection::no_modules::smoke"
|
|
|
|
"--skip=selection::no_traits::smoke"
|
|
|
|
"--skip=selection::no_types::smoke"
|
|
|
|
"--skip=fields::enum_fields"
|
|
|
|
"--skip=fields::struct_fields"
|
|
|
|
"--skip=fields::tuple_fields"
|
|
|
|
"--skip=fields::union_fields"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cargo plugin for showing a tree-like overview of a crate's modules";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-modules";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/regexident/cargo-modules";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/regexident/cargo-modules/blob/${version}/CHANGELOG.md";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = with licenses; [ mpl20 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ figsoda rvarago matthiasbeyer ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|