Merge pull request #144757 from figsoda/update-cargo-modules
cargo-modules: 0.5.0 -> 0.5.6, fix darwin build
This commit is contained in:
commit
92b75bc31c
2 changed files with 13 additions and 6 deletions
|
@ -1,22 +1,27 @@
|
||||||
{ lib, rustPlatform, fetchFromGitHub }:
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreFoundation, CoreServices }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-modules";
|
pname = "cargo-modules";
|
||||||
version = "0.5.0";
|
version = "0.5.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "regexident";
|
owner = "regexident";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0y6ag8nar85l2fh2ca41fglkzc74cv1p5szxrhk1jdqnd2qzhvjp";
|
sha256 = "sha256-bLljwxNrCmg1ZWfSninIxJIFIn2oHY8dmbHYPdwtD+M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "0m5r36p57w4vw2g3hg12s38ay328swjb0qfl381xwb2xqx10g8kx";
|
cargoSha256 = "sha256-heyVeQwEIOA9qtyXnHY8lPo06YgIUJaWCtaht9dWLoo=";
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
CoreFoundation
|
||||||
|
CoreServices
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cargo plugin for showing a tree-like overview of a crate's modules";
|
description = "A cargo plugin for showing a tree-like overview of a crate's modules";
|
||||||
homepage = "https://github.com/regexident/cargo-modules";
|
homepage = "https://github.com/regexident/cargo-modules";
|
||||||
license = with licenses; [ mpl20 ];
|
license = with licenses; [ mpl20 ];
|
||||||
maintainers = with maintainers; [ rvarago ];
|
maintainers = with maintainers; [ figsoda rvarago ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12787,7 +12787,9 @@ with pkgs;
|
||||||
cargo-make = callPackage ../development/tools/rust/cargo-make {
|
cargo-make = callPackage ../development/tools/rust/cargo-make {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||||
};
|
};
|
||||||
cargo-modules = callPackage ../development/tools/rust/cargo-modules { };
|
cargo-modules = callPackage ../development/tools/rust/cargo-modules {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
|
||||||
|
};
|
||||||
cargo-msrv = callPackage ../development/tools/rust/cargo-msrv {
|
cargo-msrv = callPackage ../development/tools/rust/cargo-msrv {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue