{ pkgs, ... }: pkgs.writeShellApplication { name = "autofmt"; runtimeInputs = with pkgs; [ # include only a couple of formatters by default clang-tools deno dprint nixfmt-rfc-style prettierd # autofmt only runs on a local build of prettier rustfmt zig ]; text = ''exec ${pkgs.nodejs}/bin/node ${./autofmt.js} "$@"''; }