nixpkgs/pkgs/by-name/ca/cargo-expand/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
731 B
Nix
Raw Normal View History

2022-02-20 09:10:02 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
2019-04-11 19:59:12 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
version = "1.0.81";
2019-04-11 19:59:12 +00:00
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
2023-09-29 04:30:20 +00:00
hash = "sha256-ZOoMWvtuLDhbJu+qzVPHGTCqh2b3PHUggfxNtUW1DoU=";
2019-04-11 19:59:12 +00:00
};
cargoHash = "sha256-cTz9ZR+79yPqTaDqXjSlqXd7NxHDl6Q75N26z+vi7ck=";
2021-05-11 08:11:31 +00:00
2020-04-21 01:23:53 +00:00
meta = with lib; {
2023-09-29 04:30:20 +00:00
description = "Cargo subcommand to show result of macro expansion";
2020-03-20 21:04:25 +00:00
homepage = "https://github.com/dtolnay/cargo-expand";
changelog = "https://github.com/dtolnay/cargo-expand/releases/tag/${version}";
2019-04-11 19:59:12 +00:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda xrelkd ];
2023-09-29 04:30:20 +00:00
mainProgram = "cargo-expand";
2019-04-11 19:59:12 +00:00
};
}