nixpkgs/pkgs/development/tools/rust/rustfmt/default.nix
Matthew Maurer a8d3cb8c29 rustfmt: 0.8.1 -> 0.8.3
Did not bump to 0.8.4 since that doesn't build with current stable.
2017-05-26 01:33:55 +02:00

24 lines
681 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
name = "rustfmt-${version}";
version = "0.8.3";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
repo = "rustfmt";
rev = "${version}";
sha256 = "1nh0h8mncz5vnn5hmw74f8nnh5cxdlrg67891l4dyq0p38vjhimz";
};
depsSha256 = "002d7y33a0bavd07wl7xrignmyaamnzfabdnr7a2x3zfizkfnblb";
meta = with stdenv.lib; {
description = "A tool for formatting Rust code according to style guidelines";
homepage = https://github.com/rust-lang-nursery/rustfmt;
license = with licenses; [ mit asl20 ];
maintainers = [ maintainers.globin ];
platforms = platforms.all;
};
}