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 {
|
2016-02-25 02:05:52 -08:00
|
|
|
name = "rustfmt-git-2016-02-15";
|
2015-10-17 18:36:15 -07:00
|
|
|
src = fetchFromGitHub {
|
2015-12-23 14:55:13 -08:00
|
|
|
owner = "rust-lang-nursery";
|
2015-10-17 18:36:15 -07:00
|
|
|
repo = "rustfmt";
|
2016-02-25 02:05:52 -08:00
|
|
|
rev = "65bc5c242de86f0651b34fd913ca338a880696e8";
|
|
|
|
sha256 = "02rdim0y5zg1r2zkfy6kj53idlbdybf3ckardbjsvdna5idc1hpz";
|
2015-09-05 09:48:36 -07:00
|
|
|
};
|
|
|
|
|
2016-02-25 02:05:52 -08:00
|
|
|
depsSha256 = "1297vy5sgiq4xqdm27pa8f99qiwrl15hb2r1dydzgk7n4iqyir6c";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|