summaryrefslogtreecommitdiff
path: root/checks/stylua/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'checks/stylua/package.nix')
-rw-r--r--checks/stylua/package.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/checks/stylua/package.nix b/checks/stylua/package.nix
new file mode 100644
index 0000000..57b439b
--- /dev/null
+++ b/checks/stylua/package.nix
@@ -0,0 +1,10 @@
+{
+ lib,
+ runCommand,
+ root,
+ stylua,
+}:
+runCommand "check-stylua" {} ''
+ ${lib.getExe stylua} --check ${root}
+ touch $out
+''