2015-11-02 02:04:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
2015-09-05 18:48:36 +02:00
|
|
|
|
2015-11-02 02:04:41 +01:00
|
|
|
with rustPlatform;
|
2015-09-05 18:48:36 +02:00
|
|
|
|
|
|
|
buildRustPackage rec {
|
2016-03-22 17:33:06 +01:00
|
|
|
name = "rustfmt-${version}";
|
2016-12-04 13:26:58 +01:00
|
|
|
version = "0.6.3";
|
2016-03-22 17:33:06 +01:00
|
|
|
|
2015-10-18 03:36:15 +02:00
|
|
|
src = fetchFromGitHub {
|
2015-12-23 23:55:13 +01:00
|
|
|
owner = "rust-lang-nursery";
|
2015-10-18 03:36:15 +02:00
|
|
|
repo = "rustfmt";
|
2016-12-04 13:26:58 +01:00
|
|
|
rev = "61ab06a92eae355ed6447d85d3c416fb65e96bdb";
|
|
|
|
sha256 = "0fa16ycbvhyxs1b278q8jizrx9z0gis0ysjwk8fjws0282xsyvbk";
|
2015-09-05 18:48:36 +02:00
|
|
|
};
|
|
|
|
|
2016-12-04 13:26:58 +01:00
|
|
|
depsSha256 = "1qg04nzba30fqswjf97wf0slai6lhrsy0bfv648sqnrf50virx5h";
|
2015-09-05 18:48:36 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for formatting Rust code according to style guidelines";
|
2016-11-16 12:26:59 +01:00
|
|
|
homepage = https://github.com/rust-lang-nursery/rustfmt;
|
2015-09-05 18:48:36 +02:00
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = [ maintainers.globin ];
|
2016-07-14 11:47:18 +02:00
|
|
|
platforms = platforms.all;
|
2015-09-05 18:48:36 +02:00
|
|
|
};
|
|
|
|
}
|