2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-expand";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.0.88";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtolnay";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-H0KgtiBxafmk2PSIxnlhzRgqt5zVfk59qWnc4iDTL0k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-UtXsUaJB7PY7FQaHu3EKZnbGjajW9e/WtK23fF0fU4c=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Cargo subcommand to show result of macro expansion";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/dtolnay/cargo-expand";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/dtolnay/cargo-expand/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ mit asl20 ];
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ figsoda xrelkd ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-expand";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|