Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.8 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.24.3";
src = fetchFromGitHub {
owner = "regexident";
repo = "cargo-modules";
tag = "v${version}";
hash = "sha256-ZotG9eYVwNb123dQ6D4bsVCb7vS/jc/I67JPrQnJ59U=";
};
cargoHash = "sha256-CNOzNaA/bOvuBsON42m0cPEvAcqpCp1oNNOetuDEN04=";
checkFlags = [
"--skip=cfg_test::with_tests::smoke"
"--skip=cfg_test::without_tests::smoke"
"--skip=colors::ansi::smoke"
"--skip=colors::plain::smoke"
"--skip=colors::truecolor::smoke"
"--skip=fields::enum_fields"
"--skip=fields::struct_fields"
"--skip=fields::tuple_fields"
"--skip=fields::union_fields"
"--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=selection::no_owns::smoke"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = "--version";
meta = {
description = "Cargo plugin for showing a tree-like overview of a crate's modules";
homepage = "https://github.com/regexident/cargo-modules";
changelog = "https://github.com/regexident/cargo-modules/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
figsoda
rvarago
matthiasbeyer
];
mainProgram = "cargo-modules";
};
}