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 {
|
2015-12-23 23:55:13 +01:00
|
|
|
name = "rustfmt-git-2015-12-23";
|
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";
|
2015-12-23 23:55:13 +01:00
|
|
|
rev = "c0b7de7c521dc65b2ad2b5a3c81fb56030f4af22";
|
|
|
|
sha256 = "1axnp8w26c3dwlx7bby3qi6385n301rlk1ndh5yaz7vkbpn4w9km";
|
2015-09-05 18:48:36 +02:00
|
|
|
};
|
|
|
|
|
2015-12-23 23:55:13 +01:00
|
|
|
depsSha256 = "1s2as7qc7jbksc16gj5cxxm52zw8h4nfgka66dmwwjlv9679wj9f";
|
2015-09-05 18:48:36 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|