about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/rustfmt/default.nix
blob: 876734a3e11365da09e15992025e28e6ed56929e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:

with rustPlatform;

buildRustPackage rec {
  name = "rustfmt-git-2015-10-28";
  src = fetchFromGitHub {
    owner = "nrc";
    repo = "rustfmt";
    rev = "bd0fdbb364ba69c69b867f96bc1ea9b59177fb76";
    sha256 = "07yxz409yxgwrzm46fhq6kyn9igznb7481kxyk90ngmhdd0a5mfd";
  };

  depsSha256 = "0qs6ilpvcrvcmxg7a94rbg9rql1hxfljy6gxrvpn59dy8hb1qccb";

  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 ];
  };
}