nixpkgs/pkgs/development/tools/rust/rustfmt/default.nix
Ricardo M. Correia 2ede3e6ddd rustfmt: 2015-10-17 -> 2015-10-28
... which also fixes the build.
Also, I've switched the compiler to the stable channel since rustfmt
supports it now.
2015-11-02 15:44:42 +01:00

23 lines
654 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:
with rustPlatform;
buildRustPackage rec {
name = "rustfmt-git-2015-10-28";
src = fetchFromGitHub {
owner = "nrc";
repo = "rustfmt";
rev = "bd0fdbb364ba69c69b867f96bc1ea9b59177fb76";
sha256 = "07yxz409yxgwrzm46fhq6kyn9igznb7481kxyk90ngmhdd0a5mfd";
};
depsSha256 = "0qs6ilpvcrvcmxg7a94rbg9rql1hxfljy6gxrvpn59dy8hb1qccb";
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 ];
};
}