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

24 lines
681 B
Nix
Raw Normal View History

2017-03-21 02:11:08 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
2015-09-05 17:48:36 +01:00
rustPlatform.buildRustPackage rec {
2016-03-22 16:33:06 +00:00
name = "rustfmt-${version}";
version = "0.8.3";
2016-03-22 16:33:06 +00:00
src = fetchFromGitHub {
2015-12-23 22:55:13 +00:00
owner = "rust-lang-nursery";
repo = "rustfmt";
rev = "${version}";
sha256 = "1nh0h8mncz5vnn5hmw74f8nnh5cxdlrg67891l4dyq0p38vjhimz";
2015-09-05 17:48:36 +01:00
};
depsSha256 = "002d7y33a0bavd07wl7xrignmyaamnzfabdnr7a2x3zfizkfnblb";
2015-09-05 17:48:36 +01:00
meta = with stdenv.lib; {
description = "A tool for formatting Rust code according to style guidelines";
2016-11-16 11:26:59 +00:00
homepage = https://github.com/rust-lang-nursery/rustfmt;
2015-09-05 17:48:36 +01:00
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
};
}