refactor(nix): improve formatting check
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m2s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m2s
This commit is contained in:
parent
aaaa4e30f5
commit
cc8a17c593
@ -115,14 +115,13 @@
|
|||||||
pkgs.runCommand "check-fmt"
|
pkgs.runCommand "check-fmt"
|
||||||
{
|
{
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
findutils
|
fd
|
||||||
(import ./pkgs { inherit pkgs; }).Fmt
|
(import ./pkgs { inherit pkgs; }).Fmt
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
set -euo pipefail
|
set -eEuo pipefail
|
||||||
cd "${self}"
|
fd --exec-batch=Fmt
|
||||||
find . -type f | xargs Fmt
|
|
||||||
touch $out
|
touch $out
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user