summaryrefslogtreecommitdiff
path: root/template/flake.nix
blob: 4a06e40856cd386860df484a9ddbf17a95f08964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  inputs = {
    nixpkgs.url = "nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    flake-checks.url = "github:getchoo/flake-checks";
  };

  outputs = {
    nixpkgs,
    flake-utils,
    flake-checks,
    ...
  }:
    flake-utils.lib.eachDefaultSystem (system: let
      pkgs = nixpkgs.legacyPackages.${system};
      flake-checks' = flake-checks.lib.mkChecks {
        inherit pkgs;
        root = ./.;
      };
    in {
      checks = {
        check-actionlint = flake-checks'.actionlint;
        check-alejandra = flake-checks'.alejandra;
        check-deadnix = flake-checks'.deadnix;
      };
    });
}