nixpkgs/pkgs/development/tools/rust/rustfmt/default.nix

26 lines
715 B
Nix
Raw Normal View History

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