mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
33 lines
501 B
Nix
33 lines
501 B
Nix
pkgs:
|
|
with pkgs; [
|
|
alejandra
|
|
elmPackages.elm-format
|
|
gotools
|
|
haskellPackages.cabal-fmt
|
|
haskellPackages.ormolu
|
|
mdsh
|
|
nixpkgs-fmt
|
|
nodePackages.prettier
|
|
python3.pkgs.black
|
|
rufo
|
|
rustfmt
|
|
shellcheck
|
|
shfmt
|
|
statix
|
|
deadnix
|
|
terraform
|
|
# util for unit testing
|
|
(pkgs.writeShellApplication {
|
|
name = "test-fmt";
|
|
text = ''
|
|
VALUE="$1"
|
|
shift
|
|
|
|
# append value to each file
|
|
for FILE in "$@"; do
|
|
echo "$VALUE" >> "$FILE"
|
|
done
|
|
'';
|
|
})
|
|
]
|