2017-03-21 02:11:08 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
2015-09-05 17:48:36 +01:00
|
|
|
|
2017-03-29 23:24:38 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2016-03-22 16:33:06 +00:00
|
|
|
name = "rustfmt-${version}";
|
2017-06-18 11:06:31 +01:00
|
|
|
version = "0.9.0";
|
2016-03-22 16:33:06 +00:00
|
|
|
|
2015-10-18 02:36:15 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-12-23 22:55:13 +00:00
|
|
|
owner = "rust-lang-nursery";
|
2015-10-18 02:36:15 +01:00
|
|
|
repo = "rustfmt";
|
2017-05-25 22:03:45 +01:00
|
|
|
rev = "${version}";
|
2017-06-18 11:06:31 +01:00
|
|
|
sha256 = "12l3ff0s0pzhcf5jbs8wqawjk4jghhhz8j6dq1n5201yvny12jlr";
|
2015-09-05 17:48:36 +01:00
|
|
|
};
|
|
|
|
|
2017-08-05 15:38:48 +01:00
|
|
|
cargoSha256 = "0gppki9mgx99xipapg36ydwk1bplygnz6sbyzbg46vhn10iggfwm";
|
2015-09-05 17:48:36 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool for formatting Rust code according to style guidelines";
|
2016-11-16 11:26:59 +00:00
|
|
|
homepage = https://github.com/rust-lang-nursery/rustfmt;
|
2015-09-05 17:48:36 +01:00
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = [ maintainers.globin ];
|
2016-07-14 10:47:18 +01:00
|
|
|
platforms = platforms.all;
|
2015-09-05 17:48:36 +01:00
|
|
|
};
|
|
|
|
}
|