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

26 lines
731 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}";
2017-01-27 03:22:51 -08:00
version = "0.7.1";
2016-03-22 09:33:06 -07:00
src = fetchFromGitHub {
2015-12-23 14:55:13 -08:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2017-01-27 03:22:51 -08:00
rev = "907134c2d10c0f11608dc4820b023f8040ad655a";
sha256 = "1sn590x6x93wjzkb78akqjim734hxynck3gmp8fx7gcrk5cch9mc";
2015-09-05 09:48:36 -07:00
};
2017-01-27 03:22:51 -08:00
depsSha256 = "1djpzgchl93radi52m89sjk2nbl9f4y15pwn4x78lqas0jlc6nlr";
2015-09-05 09:48:36 -07:00
meta = with stdenv.lib; {
description = "A tool for formatting Rust code according to style guidelines";
2016-11-16 03:26:59 -08:00
homepage = https://github.com/rust-lang-nursery/rustfmt;
2015-09-05 09:48:36 -07:00
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
};
}