diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2023-09-29 12:30:20 +0800 |
---|---|---|
committer | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2024-03-31 05:10:49 +0800 |
commit | 62ef7214325f5bb61615f63a5898c56b0e68a673 (patch) | |
tree | 9884451db52a1eb2a9340f2139561b52de19092e /pkgs/by-name/ca/cargo-expand | |
parent | 9b6376b040c2d295aa8d723f2a415e35f3a70d8c (diff) |
cargo-expand: migrate to by-name
Diffstat (limited to 'pkgs/by-name/ca/cargo-expand')
-rw-r--r-- | pkgs/by-name/ca/cargo-expand/package.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/by-name/ca/cargo-expand/package.nix b/pkgs/by-name/ca/cargo-expand/package.nix new file mode 100644 index 0000000000000..62b88be9618c8 --- /dev/null +++ b/pkgs/by-name/ca/cargo-expand/package.nix @@ -0,0 +1,27 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-expand"; + version = "1.0.81"; + + src = fetchFromGitHub { + owner = "dtolnay"; + repo = pname; + rev = version; + hash = "sha256-ZOoMWvtuLDhbJu+qzVPHGTCqh2b3PHUggfxNtUW1DoU="; + }; + + cargoHash = "sha256-cTz9ZR+79yPqTaDqXjSlqXd7NxHDl6Q75N26z+vi7ck="; + + meta = with lib; { + description = "Cargo subcommand to show result of macro expansion"; + homepage = "https://github.com/dtolnay/cargo-expand"; + changelog = "https://github.com/dtolnay/cargo-expand/releases/tag/${version}"; + license = with licenses; [ mit asl20 ]; + maintainers = with maintainers; [ figsoda xrelkd ]; + mainProgram = "cargo-expand"; + }; +} |