Skip to content

Commit 0438dff

Browse files
committed
wip
1 parent 354f557 commit 0438dff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/tools.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ with pkgs; let
3131
"$@"
3232
'';
3333
};
34+
ormoluFormat = pkgs.writeShellApplication {
35+
name = "ormolu-format";
36+
text = ''
37+
${ormolu}/bin/ormolu --mode inplace \
38+
"$(find . -name '*.hs' -not -path './dist*')"
39+
'';
40+
};
3441
ormoluTest = pkgs.writeShellScriptBin "ormolu-test" ''
3542
${ormolu}/bin/ormolu --mode check \
3643
$( find ${repoDir}/* \( \
@@ -57,6 +64,7 @@ with pkgs; let
5764
'';
5865
in [
5966
ormolu
67+
ormoluFormat
6068
styleTest
6169
prettier
6270
pkgs.alejandra

0 commit comments

Comments
 (0)