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

26 lines
715 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 {
2016-03-22 16:33:06 +00:00
name = "rustfmt-${version}";
2016-08-26 11:36:42 +01:00
version = "0.6";
2016-03-22 16:33:06 +00:00
src = fetchFromGitHub {
2015-12-23 22:55:13 +00:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2016-08-26 11:36:42 +01:00
rev = "d022f05f340b9aa4956ca315f5e424a6d3ab3248";
sha256 = "1w6ll3802061wbggqhk31pmzws423qm7jc4hyxk8a6pf9ksp0nk5";
2015-09-05 17:48:36 +01:00
};
2016-08-26 11:36:42 +01:00
depsSha256 = "13rrhgzxxx5gwpwvyxw03m5xng9c1xyaycmqpi123ma3ps5822jf";
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 ];
2016-07-14 10:47:18 +01:00
platforms = platforms.all;
2015-09-05 17:48:36 +01:00
};
}