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

25 lines
691 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}";
version = "2016-03-22";
src = fetchFromGitHub {
2015-12-23 14:55:13 -08:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2016-03-22 09:33:06 -07:00
rev = "ca757183fedf8e89286372b91ca074c11d99c4f4";
sha256 = "0ngg5m002hwwmsqy9wr50dj3l3zgwk39701wzszm3nrhz6x13dmj";
2015-09-05 09:48:36 -07:00
};
2016-03-22 09:33:06 -07:00
depsSha256 = "0mg4z197iiwjlgqs5izacld25cr11qi3bcrqq204f0jzrnj3y8ag";
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 ];
};
}