26 lines
681 B
Nix
Raw Normal View History

2017-03-21 02:11:08 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
2015-09-05 16:48:36 +00:00
with rustPlatform;
2015-09-05 16:48:36 +00:00
buildRustPackage rec {
2016-03-22 17:33:06 +01:00
name = "rustfmt-${version}";
2017-03-21 02:11:08 +00:00
version = "0.8";
2016-03-22 17:33:06 +01:00
src = fetchFromGitHub {
2015-12-23 22:55:13 +00:00
owner = "rust-lang-nursery";
repo = "rustfmt";
2017-03-21 02:11:08 +00:00
rev = version;
sha256 = "0a613x1ckwl30yamba9m7xi3xrn8pg92p2w3v7k723whyivmjk1s";
2015-09-05 16:48:36 +00:00
};
2017-03-21 02:11:08 +00:00
depsSha256 = "1vach2xf0cs7nivbakhmrm2aqdif3i5vg1syffrs2ghcix9hd21p";
2015-09-05 16:48:36 +00:00
meta = with stdenv.lib; {
description = "A tool for formatting Rust code according to style guidelines";
2016-11-16 13:26:59 +02:00
homepage = https://github.com/rust-lang-nursery/rustfmt;
2015-09-05 16:48:36 +00:00
license = with licenses; [ mit asl20 ];
maintainers = [ maintainers.globin ];
2016-07-14 11:47:18 +02:00
platforms = platforms.all;
2015-09-05 16:48:36 +00:00
};
}