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

25 lines
684 B
Nix
Raw Normal View History

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