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-04-21 15:54:59 +00:00
|
|
|
version = "1.0.84";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtolnay";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-b98OVx7vkA3sgxp8yPzdV7jAjsTqqTeffibCtK3hoMM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-BH01DgwOdP9f0KFIbbF8RRhl/oivBET2ujxdzZ56lC0=";
|
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
|
|
|
};
|
|
|
|
}
|