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

25 lines
790 B
Nix
Raw Normal View History

2019-06-24 13:57:08 -07:00
{ stdenv, rustPlatform, fetchFromGitHub, darwin }:
2019-04-11 12:59:12 -07:00
rustPlatform.buildRustPackage rec {
pname = "cargo-expand";
2019-04-27 20:04:39 -07:00
version = "0.4.12";
2019-04-11 12:59:12 -07:00
src = fetchFromGitHub {
owner = "dtolnay";
repo = pname;
rev = version;
2019-04-27 20:04:39 -07:00
sha256 = "0m57v7mh7wdl0rdbad7vkvcgy93p9gcb971wap8i5nzjvzmp4wlb";
2019-04-11 12:59:12 -07:00
};
2019-04-27 20:04:39 -07:00
cargoSha256 = "1wvqxj2w02d6zhyw3z5v0w4bfmbmldh63ygmvfxa3ngfb36gcacz";
2019-06-24 13:57:08 -07:00
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2019-04-11 12:59:12 -07:00
meta = with stdenv.lib; {
2019-04-19 23:21:11 -07:00
description = "A utility and Cargo subcommand designed to let people expand macros in their Rust source code";
2019-04-11 12:59:12 -07:00
homepage = https://github.com/dtolnay/cargo-expand;
license = with licenses; [ mit asl20 ];
platforms = platforms.all;
maintainers = with maintainers; [ xrelkd ];
};
}