depot/pkgs/by-name/ca/cargo-modules/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

62 lines
1.7 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.19.1";
src = fetchFromGitHub {
owner = "regexident";
repo = "cargo-modules";
rev = "refs/tags/v${version}";
hash = "sha256-2wA34rQHHAvx+5NhmtugnGTMZ2Sj8MNpdkkIJhDK1HM=";
};
cargoHash = "sha256-3R7rFkA2tObJZk5ypWPpMojEZvrDgKZsc1dN1wBJ63A=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
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"
];
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/${version}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
figsoda
rvarago
matthiasbeyer
];
mainProgram = "cargo-modules";
};
}