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

23 lines
654 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 {
2015-12-08 02:51:15 -08:00
name = "rustfmt-git-2015-12-08";
src = fetchFromGitHub {
owner = "nrc";
repo = "rustfmt";
2015-12-08 02:51:15 -08:00
rev = "e94bd34a06d878a41bb8be409f173a8824dda63f";
sha256 = "0f0ixbr5nfla0j0b91plmapw75yl3d3lxwvllj2wx4z94nfxanp6";
2015-09-05 09:48:36 -07:00
};
2015-12-08 02:51:15 -08:00
depsSha256 = "0vsrpw4icn9jf44sqr5749hbazsxp3hqn1g7gr90fvnfvz4s5f07";
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 ];
};
}