depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-modules/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

30 lines
1.2 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreFoundation, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.5.6";
src = fetchFromGitHub {
owner = "regexident";
repo = pname;
rev = version;
sha256 = "sha256-bLljwxNrCmg1ZWfSninIxJIFIn2oHY8dmbHYPdwtD+M=";
};
cargoSha256 = "sha256-heyVeQwEIOA9qtyXnHY8lPo06YgIUJaWCtaht9dWLoo=";
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.6.drv-0/cargo-modules-0.5.6-vendor.tar.gz/insta/src/runtime.rs:908:22
broken = (stdenv.isDarwin && stdenv.isx86_64);
maintainers = with maintainers; [ figsoda rvarago ];
};
}