summaryrefslogtreecommitdiff
path: root/test/flake.nix
blob: fdf88336e5c3eaa6b5bc4982bf151b21ee846708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  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 alejandra, so nixfmt will always fail
      checks = builtins.removeAttrs flake-checks' ["nixfmt"];
    });
}