nix-attr-search/utils/format.nix

5 lines
128 B
Nix

{ pkgs, ... }:
pkgs.writeScriptBin "nix-attrs-search-format" ''
find -name '*.nix' -exec '${pkgs.nixfmt}/bin/nixfmt' {} \;
''