nixpkgs/pkgs/development/tools/rust/cargo-expand/default.nix

24 lines
658 B
Nix
Raw Normal View History

2020-04-21 03:23:53 +02:00
{ lib, rustPlatform, fetchFromGitHub }:
2019-04-11 21:59:12 +02:00
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
2020-11-26 00:46:40 +01:00
version = "1.0.4";
2019-04-11 21:59:12 +02:00
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
2020-11-26 00:46:40 +01:00
sha256 = "09jdqf1f8kl2c3k4cp8j3qqb96gclhncvfdwg2l3bmh5r10id9b3";
2019-04-11 21:59:12 +02:00
};
2020-11-26 00:46:40 +01:00
cargoSha256 = "0mx01h2zv7mpyi8s1545b7hjxn9aslzpbngrq4ii9rfqznz3r8k9";
2019-08-11 17:06:47 +02:00
2020-04-21 03:23:53 +02:00
meta = with lib; {
description =
"A utility and Cargo subcommand designed to let people expand macros in their Rust source code";
2020-03-20 22:04:25 +01:00
homepage = "https://github.com/dtolnay/cargo-expand";
2019-04-11 21:59:12 +02:00
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ xrelkd ];
};
}