2022-06-06 05:29:04 -06:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
2024-04-01 17:58:23 -06:00
|
|
|
inherit (lib) types mkOption;
|
2022-06-06 05:29:04 -06:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2022-06-25 16:13:03 -06:00
|
|
|
meta = lib.mkOption {
|
2024-04-01 17:58:23 -06:00
|
|
|
description = ''
|
2022-06-27 12:06:30 -06:00
|
|
|
The [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes that will be set on the returned derivations.
|
|
|
|
|
|
|
|
Not all [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes are supported, but more can be added as desired.
|
|
|
|
'';
|
2022-06-25 16:13:03 -06:00
|
|
|
apply = lib.filterAttrs (k: v: v != null);
|
|
|
|
type = types.submodule {
|
|
|
|
options = {
|
|
|
|
maintainers = lib.mkOption {
|
|
|
|
type = types.listOf types.raw;
|
|
|
|
default = [];
|
2024-04-01 17:58:23 -06:00
|
|
|
description = ''
|
2022-06-27 12:06:30 -06:00
|
|
|
The [list of maintainers](https://nixos.org/manual/nixpkgs/stable/#var-meta-maintainers) for this test.
|
|
|
|
'';
|
2022-06-25 16:13:03 -06:00
|
|
|
};
|
|
|
|
timeout = lib.mkOption {
|
|
|
|
type = types.nullOr types.int;
|
2023-02-16 09:17:53 -07:00
|
|
|
default = 3600; # 1 hour
|
2024-04-01 17:58:23 -06:00
|
|
|
description = ''
|
2022-09-29 04:41:59 -06:00
|
|
|
The [{option}`test`](#test-opt-test)'s [`meta.timeout`](https://nixos.org/manual/nixpkgs/stable/#var-meta-timeout) in seconds.
|
2022-06-27 12:06:30 -06:00
|
|
|
'';
|
2022-06-25 16:13:03 -06:00
|
|
|
};
|
|
|
|
broken = lib.mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
2024-04-01 17:58:23 -06:00
|
|
|
description = ''
|
2022-09-29 04:41:59 -06:00
|
|
|
Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#test-opt-test) derivation.
|
2022-06-27 12:06:30 -06:00
|
|
|
'';
|
2022-06-25 16:13:03 -06:00
|
|
|
};
|
2024-04-01 12:21:32 -06:00
|
|
|
platforms = lib.mkOption {
|
|
|
|
type = types.listOf types.raw;
|
2024-04-12 05:41:27 -06:00
|
|
|
default = lib.platforms.linux ++ lib.platforms.darwin;
|
2024-04-01 12:21:32 -06:00
|
|
|
description = ''
|
|
|
|
Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
|
|
|
'';
|
|
|
|
};
|
2022-06-25 16:13:03 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
default = {};
|
2022-06-06 05:29:04 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|