2021-12-06 16:07:01 +00:00
{ lib , rustPlatform , fetchFromGitHub , stdenv , CoreFoundation , CoreServices }:
2021-06-28 23:13:55 +00:00
rustPlatform . buildRustPackage rec {
pname = " c a r g o - m o d u l e s " ;
2022-08-12 12:06:08 +00:00
version = " 0 . 5 . 1 1 " ;
2021-06-28 23:13:55 +00:00
src = fetchFromGitHub {
owner = " r e g e x i d e n t " ;
repo = pname ;
rev = version ;
2022-08-12 12:06:08 +00:00
sha256 = " s h a 2 5 6 - d x y 4 6 l s 0 n 7 j 2 u a x + d j q B 9 Z y / u G g V 3 7 w 5 K 1 Z c 8 W z d 1 V c = " ;
2021-06-28 23:13:55 +00:00
} ;
2022-08-12 12:06:08 +00:00
cargoSha256 = " s h a 2 5 6 - 2 Q 4 p G n M o 4 F i P P G z 2 X X O v 6 + z B 5 D x H A 8 o E q z t i d O 2 V v y w = " ;
2021-12-06 16:07:01 +00:00
buildInputs = lib . optionals stdenv . isDarwin [
CoreFoundation
CoreServices
] ;
2021-06-28 23:13:55 +00:00
meta = with lib ; {
description = " A c a r g o p l u g i n f o r s h o w i n g a t r e e - l i k e o v e r v i e w o f a c r a t e ' s m o d u l e s " ;
homepage = " h t t p s : / / g i t h u b . c o m / r e g e x i d e n t / c a r g o - m o d u l e s " ;
license = with licenses ; [ mpl20 ] ;
2022-06-16 17:23:12 +00:00
# all tests fail with:
2022-07-14 12:49:19 +00:00
# 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
2022-06-16 17:23:12 +00:00
broken = ( stdenv . isDarwin && stdenv . isx86_64 ) ;
2021-12-06 16:07:01 +00:00
maintainers = with maintainers ; [ figsoda rvarago ] ;
2021-06-28 23:13:55 +00:00
} ;
}