at 23.05-pre 28 lines 815 B view raw
1{ lib, rustPlatform, fetchCrate, stdenv, CoreFoundation, CoreServices }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-modules"; 5 version = "0.5.14"; 6 7 src = fetchCrate { 8 inherit pname version; 9 sha256 = "sha256-urbyWNbmj2qEO4JJ/waRXGRJ9L5KgwsRB5Wh9yib8zc="; 10 }; 11 12 cargoSha256 = "sha256-3OxO+j5UuPEg9xNmN+kIqpdq6fVnFpgx5xCaMNue52g="; 13 14 buildInputs = lib.optionals stdenv.isDarwin [ 15 CoreFoundation 16 CoreServices 17 ]; 18 19 # the crate version doesn't include all the files required to run tests 20 doCheck = false; 21 22 meta = with lib; { 23 description = "A cargo plugin for showing a tree-like overview of a crate's modules"; 24 homepage = "https://github.com/regexident/cargo-modules"; 25 license = with licenses; [ mpl20 ]; 26 maintainers = with maintainers; [ figsoda rvarago ]; 27 }; 28}