2021-04-26 19:14:03 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "treefmt";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.2.6";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numtide";
|
|
|
|
repo = "treefmt";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-hnrMy8iYoaeWxZlhO9L1kQW3OgL6jHL1MxJpbNFLHZk=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
cargoSha256 = "sha256-O7Ma6+Vniil5hIDd5JCWecTvkAjq7wMuuyfrzePDDq4=";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "one CLI to format the code tree";
|
|
|
|
homepage = "https://github.com/numtide/treefmt";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|