2023-01-07 21:44:45 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
|
2021-06-21 16:09:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-modules";
|
2023-01-13 22:39:10 +00:00
|
|
|
version = "0.7.4";
|
2021-06-21 16:09:19 +00:00
|
|
|
|
2022-12-06 16:05:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regexident";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-13 22:39:10 +00:00
|
|
|
sha256 = "sha256-5j7zTAFUkevhSpiOn8KNG5+N7M9M1+c6hAKpDwPXdBQ=";
|
2021-06-21 16:09:19 +00:00
|
|
|
};
|
|
|
|
|
2023-01-13 22:39:10 +00:00
|
|
|
cargoSha256 = "sha256-jCbs/y0L9YP9VDEtofeqWXbUlsBpVRMbjIYtPRlmQVY=";
|
2021-11-05 15:23:19 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2022-12-06 16:05:30 +00:00
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
2021-11-05 15:23:19 +00:00
|
|
|
];
|
2021-06-21 16:09:19 +00:00
|
|
|
|
|
|
|
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";
|
2022-12-06 16:05:30 +00:00
|
|
|
changelog = "https://github.com/regexident/cargo-modules/blob/${version}/CHANGELOG.md";
|
2021-06-21 16:09:19 +00:00
|
|
|
license = with licenses; [ mpl20 ];
|
2021-11-05 15:23:19 +00:00
|
|
|
maintainers = with maintainers; [ figsoda rvarago ];
|
2021-06-21 16:09:19 +00:00
|
|
|
};
|
|
|
|
}
|