nix-attr-search/utils/format.nix

5 lines
127 B
Nix

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