summaryrefslogtreecommitdiff
path: root/test/flake.nix
blob: 45509e8f8612a0ae6250ae108d03e27a396bb343 (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";
  };

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