fix nix fmt

This commit is contained in:
Gerg-L 2023-12-10 20:22:27 -05:00
parent 701ee8f205
commit b1c13f4914
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
5 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@ writeShellApplication {
fd
];
text = ''
if [ -z "''${1:-""}" ]; then
if [ -z "''${1:-""}" ] || [ "$1" == "." ]; then
fd '.*\.nix' . -x statix fix -- {} \;
fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \;
else

View file

@ -1,6 +1,6 @@
{inputs, nixfmt}:
(nixfmt.overrideAttrs {
version = "0.6.0-${inputs.nixfmt.shortRev}";
version = "0.6.0-${inputs.nixfmt.shortRev}";
src = inputs.nixfmt;
})
src = inputs.nixfmt;
})