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-03-22 09:33:06 -07:00
|
|
|
name = "rustfmt-${version}";
|
2016-11-16 03:26:59 -08:00
|
|
|
version = "0.6.2";
|
2016-03-22 09:33:06 -07:00
|
|
|
|
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-11-16 03:26:59 -08:00
|
|
|
rev = "4418fab4f24e6497aa2a1f71bb4cf963c2971a28";
|
|
|
|
sha256 = "0x2kg2sqpj4lsqqskcy5p0w3264f0by1irkjj369ch89xax7l52l";
|
2015-09-05 09:48:36 -07:00
|
|
|
};
|
|
|
|
|
2016-11-16 03:26:59 -08:00
|
|
|
depsSha256 = "022mwggmy6p9n8dh22y6m3sadrwvwlbpj9w9ki9avmgsm3cj2mhs";
|
2015-09-05 09:48:36 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for formatting Rust code according to style guidelines";
|
2016-11-16 03:26:59 -08:00
|
|
|
homepage = https://github.com/rust-lang-nursery/rustfmt;
|
2015-09-05 09:48:36 -07:00
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = [ maintainers.globin ];
|
2016-07-14 02:47:18 -07:00
|
|
|
platforms = platforms.all;
|
2015-09-05 09:48:36 -07:00
|
|
|
};
|
|
|
|
}
|