config/packages/autofmt/default.nix
chloe caruso 0a5d9bfc17 fix: autofmt doesn't work in deno
tried to reduce but it's not worth it and related issues being open for
years gives me no confidence they will fix this. it also does not work
in bun, but i've opened https://github.com/oven-sh/bun/issues/22018
2025-08-21 00:37:56 -07:00

14 lines
296 B
Nix

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