26 lines
715 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
2015-09-05 16:48:36 +00:00
with rustPlatform;
2015-09-05 16:48:36 +00:00
buildRustPackage rec {
2016-03-22 17:33:06 +01:00
name = "rustfmt-${version}";
2016-04-20 12:43:00 +03:00
version = "0.4";
2016-03-22 17:33:06 +01:00
src = fetchFromGitHub {
2015-12-23 22:55:13 +00:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2016-04-20 12:43:00 +03:00
rev = "19768da5c97c108a05e6f545b73ba4b76d1b1788";
sha256 = "0f2m0gvlqlybcjl2xqwxlp5hjkhd30kx25dq56k5x0r3808ijksg";
2015-09-05 16:48:36 +00:00
};
2016-04-20 12:43:00 +03:00
depsSha256 = "1lbcpvp7xhyl96w7jfd18w6py60nwllr93jna5j33zvnip61cpf5";
2015-09-05 16:48:36 +00: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 ];
2016-07-14 11:47:18 +02:00
platforms = platforms.all;
2015-09-05 16:48:36 +00:00
};
}