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

23 lines
668 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-02-25 11:05:52 +01:00
name = "rustfmt-git-2016-02-15";
src = fetchFromGitHub {
2015-12-23 23:55:13 +01:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2016-02-25 11:05:52 +01:00
rev = "65bc5c242de86f0651b34fd913ca338a880696e8";
sha256 = "02rdim0y5zg1r2zkfy6kj53idlbdybf3ckardbjsvdna5idc1hpz";
2015-09-05 18:48:36 +02:00
};
2016-02-25 11:05:52 +01:00
depsSha256 = "1297vy5sgiq4xqdm27pa8f99qiwrl15hb2r1dydzgk7n4iqyir6c";
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 ];
};
}