mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-05 21:17:37 +03:00
40b76b74a0
Signed-off-by: Brian McGee <brian@bmcgee.ie>
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
|
|
'';
|
|
})
|
|
]
|