mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/testing: Drop darwin from default hydraPlatforms
Litmus test: the following attribute disappears nix eval -f pkgs/top-level/release.nix tests.testers.nixosTest-example.x86_64-darwin.outPath
This commit is contained in:
parent
0433bf6a90
commit
ee83bfa879
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib) types mkOption literalExpression;
|
||||
inherit (lib) types mkOption literalMD;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -45,8 +45,10 @@ in
|
|||
};
|
||||
hydraPlatforms = mkOption {
|
||||
type = types.listOf types.raw;
|
||||
default = config.platforms;
|
||||
defaultText = literalExpression "meta.platforms";
|
||||
# Ideally this would default to `platforms` again:
|
||||
# default = config.platforms;
|
||||
default = lib.platforms.linux;
|
||||
defaultText = literalMD "`lib.platforms.linux` only, as the `hydra.nixos.org` build farm does not currently support virtualisation on Darwin.";
|
||||
description = ''
|
||||
Sets the [`meta.hydraPlatforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-hydraPlatforms) attribute on the [{option}`test`](#test-opt-test) derivation.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue