3 inherit (lib) types mkOption;
9 The [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes that will be set on the returned derivations.
11 Not all [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes are supported, but more can be added as desired.
13 apply = lib.filterAttrs (k: v: v != null);
14 type = types.submodule {
16 maintainers = lib.mkOption {
17 type = types.listOf types.raw;
20 The [list of maintainers](https://nixos.org/manual/nixpkgs/stable/#var-meta-maintainers) for this test.
23 timeout = lib.mkOption {
24 type = types.nullOr types.int;
25 default = 3600; # 1 hour
27 The [{option}`test`](#test-opt-test)'s [`meta.timeout`](https://nixos.org/manual/nixpkgs/stable/#var-meta-timeout) in seconds.
30 broken = lib.mkOption {
34 Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#test-opt-test) derivation.
37 platforms = lib.mkOption {
38 type = types.listOf types.raw;
39 default = lib.platforms.linux ++ lib.platforms.darwin;
41 Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.