diff options
| author | vkcku <[email protected]> | 2026-06-01 09:43:32 +0530 |
|---|---|---|
| committer | vkcku <[email protected]> | 2026-06-01 09:43:32 +0530 |
| commit | 4fbcc1a04d62b5b569c7f26f8f80dec27326cf2a (patch) | |
| tree | 70baa3ec054ce9c2d0919ec039aa22d59e2ab7d4 /infra/nix/checks.nix | |
| parent | root: configure markdown formatter (diff) | |
infra: initial commit
monorepo-revid: ed8c310e6049eb2c7bba4ee82872707984c2c5bb
Diffstat (limited to 'infra/nix/checks.nix')
| -rw-r--r-- | infra/nix/checks.nix | 22 |
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" + ''; + }; + }; +} |
