1{ lib, rustPlatform, fetchFromGitHub }:
2rustPlatform.buildRustPackage rec {
3 pname = "treefmt";
4 version = "0.5.0";
5
6 src = fetchFromGitHub {
7 owner = "numtide";
8 repo = "treefmt";
9 rev = "v${version}";
10 hash = "sha256-v+hXWyrY0GfSgXeqgYLgoOmeiHsZyhRO9Fmj5rPiNJ8=";
11 };
12
13 cargoSha256 = "sha256-/WyaZxRFYJmz/qRp2s2v8swdwAtuNR7KXND20IzQoy8=";
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 = lib.teams.numtide.members;
20 };
21}