mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
nixos/testing/meta.nix: lib.mkOption -> mkOption
This commit is contained in:
parent
8c9fc4a76c
commit
0433bf6a90
1 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
meta = lib.mkOption {
|
meta = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
The [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes that will be set on the returned derivations.
|
The [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes that will be set on the returned derivations.
|
||||||
|
|
||||||
|
@ -15,35 +15,35 @@ in
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
maintainers = lib.mkOption {
|
maintainers = mkOption {
|
||||||
type = types.listOf types.raw;
|
type = types.listOf types.raw;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = ''
|
description = ''
|
||||||
The [list of maintainers](https://nixos.org/manual/nixpkgs/stable/#var-meta-maintainers) for this test.
|
The [list of maintainers](https://nixos.org/manual/nixpkgs/stable/#var-meta-maintainers) for this test.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
timeout = lib.mkOption {
|
timeout = mkOption {
|
||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
default = 3600; # 1 hour
|
default = 3600; # 1 hour
|
||||||
description = ''
|
description = ''
|
||||||
The [{option}`test`](#test-opt-test)'s [`meta.timeout`](https://nixos.org/manual/nixpkgs/stable/#var-meta-timeout) in seconds.
|
The [{option}`test`](#test-opt-test)'s [`meta.timeout`](https://nixos.org/manual/nixpkgs/stable/#var-meta-timeout) in seconds.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
broken = lib.mkOption {
|
broken = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#test-opt-test) derivation.
|
Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#test-opt-test) derivation.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
platforms = lib.mkOption {
|
platforms = mkOption {
|
||||||
type = types.listOf types.raw;
|
type = types.listOf types.raw;
|
||||||
default = lib.platforms.linux ++ lib.platforms.darwin;
|
default = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
description = ''
|
description = ''
|
||||||
Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
hydraPlatforms = lib.mkOption {
|
hydraPlatforms = mkOption {
|
||||||
type = types.listOf types.raw;
|
type = types.listOf types.raw;
|
||||||
default = config.platforms;
|
default = config.platforms;
|
||||||
defaultText = literalExpression "meta.platforms";
|
defaultText = literalExpression "meta.platforms";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue