aboutsummaryrefslogtreecommitdiff
path: root/infra/nix/checks.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nix/checks.nix')
-rw-r--r--infra/nix/checks.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/infra/nix/checks.nix b/infra/nix/checks.nix
new file mode 100644
index 0000000..52abdc8
--- /dev/null
+++ b/infra/nix/checks.nix
@@ -0,0 +1,22 @@
+{ inputs, ... }:
+{
+ perSystem =
+ { pkgs, ... }:
+ {
+ checks.infra-lint =
+ let
+ treefmt = pkgs.callPackage ./_treefmt.nix { treefmt-nix = inputs.treefmt-nix; };
+ in
+ pkgs.stdenvNoCC.mkDerivation {
+ name = "infra-lint";
+ version = "0.0.1";
+
+ src = ../../.;
+
+ buildPhase = ''
+ "${treefmt}/bin/treefmt" --ci
+ touch "$out"
+ '';
+ };
+ };
+}