depot/third_party/nixpkgs/pkgs/by-name/ca/cargo-expand/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

27 lines
731 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
version = "1.0.87";
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
hash = "sha256-sBL1/5was2qN8M2s8u443mb376ySE+T58bmdfO0XqE0=";
};
cargoHash = "sha256-DhjZMOKfXBGSF8b7OQ7l++/RKjtww+cUJDj91JW9ROY=";
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";
};
}