1{ lib, rustPlatform, fetchFromGitHub }:
2rustPlatform.buildRustPackage rec {
3 pname = "treefmt";
4 version = "0.2.6";
5
6 src = fetchFromGitHub {
7 owner = "numtide";
8 repo = "treefmt";
9 rev = "v${version}";
10 sha256 = "sha256-hnrMy8iYoaeWxZlhO9L1kQW3OgL6jHL1MxJpbNFLHZk=";
11 };
12
13 cargoSha256 = "sha256-O7Ma6+Vniil5hIDd5JCWecTvkAjq7wMuuyfrzePDDq4=";
14
15 meta = {
16 description = "one CLI to format the code tree";
17 homepage = "https://github.com/numtide/treefmt";
18 license = lib.licenses.mit;
19 maintainers = with lib.maintainers; [ zimbatm ];
20 };
21}