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