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 20:59:12 +01:00
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
2024-08-01 01:46:23 +01:00
version = "1.0.89";
2019-04-11 20:59:12 +01:00
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
2024-08-01 01:46:23 +01:00
hash = "sha256-oFc3hcTEZW0qgk8m4dl3NThz10ogWEMn+3BMUXmpehI=";
2019-04-11 20:59:12 +01:00
};
2024-08-01 01:46:23 +01:00
cargoHash = "sha256-ce+yu3UbWbpB4UOyAAJR8MKmbJhfCHmaGHEhs5GpFeU=";
2021-05-11 09:11:31 +01:00
2020-04-21 02:23:53 +01:00
meta = with lib; {
2023-09-29 05:30:20 +01: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 20:59:12 +01:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda xrelkd ];
2023-09-29 05:30:20 +01:00
mainProgram = "cargo-expand";
2019-04-11 20:59:12 +01:00
};
}