Merge pull request #204812 from figsoda/cargo-modules

cargo-modules: 0.5.14 -> 0.7.0
This commit is contained in:
figsoda 2022-12-07 14:14:03 -05:00 committed by GitHub
commit 8cdc50c434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 14 deletions

View File

@ -1,27 +1,26 @@
{ lib, rustPlatform, fetchCrate, stdenv, CoreFoundation, CoreServices }:
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "cargo-modules";
version = "0.5.14";
version = "0.7.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-urbyWNbmj2qEO4JJ/waRXGRJ9L5KgwsRB5Wh9yib8zc=";
src = fetchFromGitHub {
owner = "regexident";
repo = pname;
rev = version;
sha256 = "sha256-IBvSuyr3ERfPIivw6sEJSRta07Awmwd47cV1iKmvt8A=";
};
cargoSha256 = "sha256-3OxO+j5UuPEg9xNmN+kIqpdq6fVnFpgx5xCaMNue52g=";
cargoSha256 = "sha256-zX3lBNQVWBrVQh+02TDUqU7Xmbd7hBOzJxD7cSNTNR0=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
CoreServices
darwin.apple_sdk.frameworks.CoreServices
];
# the crate version doesn't include all the files required to run tests
doCheck = false;
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";
changelog = "https://github.com/regexident/cargo-modules/blob/${version}/CHANGELOG.md";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ figsoda rvarago ];
};

View File

@ -15320,9 +15320,7 @@ with pkgs;
cargo-make = callPackage ../development/tools/rust/cargo-make {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
cargo-modules = callPackage ../development/tools/rust/cargo-modules {
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};
cargo-modules = callPackage ../development/tools/rust/cargo-modules { };
cargo-msrv = callPackage ../development/tools/rust/cargo-msrv {
inherit (darwin.apple_sdk.frameworks) Security;
};