depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-modules/default.nix

31 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreFoundation, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.5.9";
src = fetchFromGitHub {
owner = "regexident";
repo = pname;
rev = version;
sha256 = "sha256-7bcFKsKDp+DBOZRBrSOat+7AIShCgmasKItI8xcsaC0=";
};
cargoSha256 = "sha256-CCjJq2ghAL6k7unPlZGYKKAxXfv05GIDivw/rbl2Wd4=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
CoreServices
];
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 ];
# all tests fail with:
# thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "tests run with disabled concurrency, automatic snapshot name generation is not supported. Consider using the \"backtrace\" feature of insta which tries to recover test names from the call stack."', /private/tmp/nix-build-cargo-modules-0.5.9.drv-0/cargo-modules-0.5.9-vendor.tar.gz/insta/src/runtime.rs:908:22
broken = (stdenv.isDarwin && stdenv.isx86_64);
maintainers = with maintainers; [ figsoda rvarago ];
};
}