2021-04-26 19:14:03 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "treefmt";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.6.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numtide";
|
|
|
|
repo = "treefmt";
|
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-icAe54Mv1xpOjUPSk8QDZaMk2ueNvjER6UyJ9uyUL6s=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-bpNIGuh74nwEmHPeXtPmsML9vJOb00xkdjK0Nd7esAc=";
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = [ lib.maintainers.zimbatm ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "treefmt";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|