2015-11-01 17:04:41 -08:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
2015-09-05 09:48:36 -07:00
|
|
|
|
2015-11-01 17:04:41 -08:00
|
|
|
with rustPlatform;
|
2015-09-05 09:48:36 -07:00
|
|
|
|
|
|
|
buildRustPackage rec {
|
2015-12-08 02:51:15 -08:00
|
|
|
name = "rustfmt-git-2015-12-08";
|
2015-10-17 18:36:15 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nrc";
|
|
|
|
repo = "rustfmt";
|
2015-12-08 02:51:15 -08:00
|
|
|
rev = "e94bd34a06d878a41bb8be409f173a8824dda63f";
|
|
|
|
sha256 = "0f0ixbr5nfla0j0b91plmapw75yl3d3lxwvllj2wx4z94nfxanp6";
|
2015-09-05 09:48:36 -07:00
|
|
|
};
|
|
|
|
|
2015-12-08 02:51:15 -08:00
|
|
|
depsSha256 = "0vsrpw4icn9jf44sqr5749hbazsxp3hqn1g7gr90fvnfvz4s5f07";
|
2015-09-05 09:48:36 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for formatting Rust code according to style guidelines";
|
|
|
|
homepage = https://github.com/nrc/rustfmt;
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
};
|
|
|
|
}
|