aboutsummaryrefslogtreecommitdiff
path: root/infra/nix/checks.nix
blob: 52abdc8f894430611ce7a5df355b44054c7840df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"
          '';
        };
    };
}