2022-05-25 16:36:33 +02:00
|
|
|
{ config, lib, flake-parts-lib, ... }:
|
2021-10-27 11:05:52 +02:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
filterAttrs
|
|
|
|
mapAttrs
|
|
|
|
mkOption
|
|
|
|
optionalAttrs
|
|
|
|
types
|
|
|
|
;
|
2022-05-25 16:36:33 +02:00
|
|
|
inherit (flake-parts-lib)
|
2021-11-21 15:47:11 +01:00
|
|
|
mkSubmoduleOptions
|
2022-05-13 10:15:21 +02:00
|
|
|
mkPerSystemOption
|
2021-11-21 15:47:11 +01:00
|
|
|
;
|
2021-10-27 11:05:52 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2021-11-21 15:47:11 +01:00
|
|
|
flake = mkSubmoduleOptions {
|
2021-10-27 11:05:52 +02:00
|
|
|
checks = mkOption {
|
|
|
|
type = types.lazyAttrsOf (types.lazyAttrsOf types.package);
|
|
|
|
default = { };
|
2021-11-21 14:30:12 +01:00
|
|
|
description = ''
|
|
|
|
Derivations to be built by nix flake check.
|
|
|
|
'';
|
2021-10-27 11:05:52 +02:00
|
|
|
};
|
|
|
|
};
|
2022-05-13 10:15:21 +02:00
|
|
|
|
|
|
|
perSystem = mkPerSystemOption ({ config, system, ... }: {
|
|
|
|
_file = ./checks.nix;
|
|
|
|
options = {
|
|
|
|
checks = mkOption {
|
|
|
|
type = types.lazyAttrsOf types.package;
|
|
|
|
default = { };
|
|
|
|
description = ''
|
|
|
|
Derivations to be built by nix flake check.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2021-10-27 11:05:52 +02:00
|
|
|
};
|
|
|
|
config = {
|
2022-10-26 13:16:04 +02:00
|
|
|
transposition.checks = { };
|
2021-10-27 11:05:52 +02:00
|
|
|
};
|
|
|
|
}
|