2015-11-02 01:04:41 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
|
2015-09-05 17:48:36 +01:00
|
|
|
|
2015-11-02 01:04:41 +00:00
|
|
|
with rustPlatform;
|
2015-09-05 17:48:36 +01:00
|
|
|
|
|
|
|
buildRustPackage rec {
|
2015-12-23 22:55:13 +00:00
|
|
|
name = "rustfmt-git-2015-12-23";
|
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";
|
2015-12-23 22:55:13 +00:00
|
|
|
rev = "c0b7de7c521dc65b2ad2b5a3c81fb56030f4af22";
|
|
|
|
sha256 = "1axnp8w26c3dwlx7bby3qi6385n301rlk1ndh5yaz7vkbpn4w9km";
|
2015-09-05 17:48:36 +01:00
|
|
|
};
|
|
|
|
|
2015-12-23 22:55:13 +00:00
|
|
|
depsSha256 = "1s2as7qc7jbksc16gj5cxxm52zw8h4nfgka66dmwwjlv9679wj9f";
|
2015-09-05 17:48:36 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|