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

26 lines
715 B
Nix
Raw Normal View History

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