mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
lib/systems: gate linux-kernel assertion behind oldestSupportedRelease (#532194)
This commit is contained in:
commit
437220a111
1 changed files with 9 additions and 2 deletions
|
|
@ -17,6 +17,10 @@ let
|
|||
|
||||
inherit (lib.strings) toJSON;
|
||||
|
||||
inherit (lib.trivial)
|
||||
oldestSupportedReleaseIsAtLeast
|
||||
;
|
||||
|
||||
doubles = import ./doubles.nix { inherit lib; };
|
||||
parse = import ./parse.nix { inherit lib; };
|
||||
inspect = import ./inspect.nix { inherit lib; };
|
||||
|
|
@ -701,9 +705,12 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
# TODO: Remove in 27.05.
|
||||
# Platforms elaborated by pre-26.11 Nixpkgs will include the `linux-kernel` attr,
|
||||
# so we can't assert its absence until 26.11 is the oldest supported release.
|
||||
# Assertion will activate during the 27.05 cycle, when 26.05 support ends.
|
||||
# TODO: Remove assertion in the 27.11 cycle.
|
||||
assert
|
||||
args ? linux-kernel
|
||||
oldestSupportedReleaseIsAtLeast 2611 && args ? linux-kernel
|
||||
-> throw "lib.systems.elaborate: linux-kernel has been removed; see the 26.11 release notes";
|
||||
|
||||
assert final.useAndroidPrebuilt -> final.isAndroid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue