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-05-15 15:35:15 +00:00
|
|
|
version = "1.0.87";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtolnay";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-sBL1/5was2qN8M2s8u443mb376ySE+T58bmdfO0XqE0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-DhjZMOKfXBGSF8b7OQ7l++/RKjtww+cUJDj91JW9ROY=";
|
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
|
|
|
};
|
|
|
|
}
|