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

23 lines
668 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
2015-09-05 17:48:36 +01:00
with rustPlatform;
2015-09-05 17:48:36 +01:00
buildRustPackage rec {
2015-12-23 22:55:13 +00:00
name = "rustfmt-git-2015-12-23";
src = fetchFromGitHub {
2015-12-23 22:55:13 +00:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2015-12-23 22:55:13 +00:00
rev = "c0b7de7c521dc65b2ad2b5a3c81fb56030f4af22";
sha256 = "1axnp8w26c3dwlx7bby3qi6385n301rlk1ndh5yaz7vkbpn4w9km";
2015-09-05 17:48:36 +01:00
};
2015-12-23 22:55:13 +00:00
depsSha256 = "1s2as7qc7jbksc16gj5cxxm52zw8h4nfgka66dmwwjlv9679wj9f";
2015-09-05 17:48:36 +01: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 ];
};
}