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

  outputs =
    { nixpkgs, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (
      system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        flake-checks' = (import ../.).mkChecks {
          inherit pkgs;
          root = ../.;
        };
      in
      {
        # we use nixfmt, so alejandra will always fail
        checks = builtins.removeAttrs flake-checks' [ "alejandra" ];
      }
    );
}