config: add stub allowDeprecatedx86_64Darwin option

This commit is contained in:
Emily
2026-02-18 02:25:26 +00:00
parent d9839f0cd9
commit ec070a136c
2 changed files with 20 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ let
allowVariants = !attrNamesOnly;
checkMeta = true;
# Silence the `x86_64-darwin` deprecation warning.
allowDeprecatedx86_64Darwin = true;
handleEvalIssue =
reason: errormsg:
let

View File

@@ -431,6 +431,23 @@ let
Please read https://www.visualstudio.com/license-terms/mt644918/ and enable this config if you accept.
'';
};
allowDeprecatedx86_64Darwin = mkOption {
# `force` does nothing; its reserved for forward compatibility
# with 26.11. We hide it from the documentation to avoid a
# footgun, as it will make the error in 26.11 less useful.
type = types.either types.bool (types.enum [ "force" ]) // {
inherit (types.bool) description descriptionClass;
};
default = false;
description = ''
Silence the warning for the upcoming deprecation of the
`x86_64-darwin` platform in Nixpkgs 26.11.
This does nothing in 25.11, and is provided there for forward
compatibility of configurations with 26.05.
'';
};
};
in