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

24 lines
658 B
Nix
Raw Normal View History

2020-04-21 02:23:53 +01:00
{ lib, rustPlatform, fetchFromGitHub }:
2019-04-11 20:59:12 +01:00
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
2020-11-25 23:46:40 +00:00
version = "1.0.4";
2019-04-11 20:59:12 +01:00
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
2020-11-25 23:46:40 +00:00
sha256 = "09jdqf1f8kl2c3k4cp8j3qqb96gclhncvfdwg2l3bmh5r10id9b3";
2019-04-11 20:59:12 +01:00
};
2020-11-25 23:46:40 +00:00
cargoSha256 = "0mx01h2zv7mpyi8s1545b7hjxn9aslzpbngrq4ii9rfqznz3r8k9";
2019-08-11 16:06:47 +01:00
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 ];
};
}