2021-05-11 09:11:31 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }:
|
2019-04-11 20:59:12 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-expand";
|
2021-03-17 09:44:13 +00:00
|
|
|
version = "1.0.6";
|
2019-04-11 20:59:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dtolnay";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-17 09:44:13 +00:00
|
|
|
sha256 = "sha256-6FjFG4RYvmsV/W7OMxj1ZWvruwUeP9Nvsdiv8toZmTk=";
|
2019-04-11 20:59:12 +01:00
|
|
|
};
|
|
|
|
|
2021-03-17 09:44:13 +00:00
|
|
|
cargoSha256 = "sha256-1+A+n5VQS8zJULiR8IWLGo+RnFuVjg6ist8G3eCsXJM=";
|
2019-08-11 16:06:47 +01:00
|
|
|
|
2021-05-11 09:11:31 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2020-04-21 02:23:53 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"A utility and Cargo subcommand designed to let people expand macros in their Rust source code";
|
2020-03-20 21:04:25 +00:00
|
|
|
homepage = "https://github.com/dtolnay/cargo-expand";
|
2019-04-11 20:59:12 +01:00
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
};
|
|
|
|
}
|