llvmPackages_{12,13}.lldb: don't try to find nonexistent patch

We just need to make sure the attribute evaluates so we can cleanly
access `meta.broken` for those versions.

(cherry picked from commit ce6c31c312)
(cherry picked from commit 9bf90993f4ba264b12733c3ae768db6e821279c5)
This commit is contained in:
sternenseemann
2024-11-30 15:11:09 +01:00
committed by Vladimír Čunát
parent 85f95c56e4
commit fe5ea976bf
@@ -713,8 +713,12 @@ let
#
# See here for some context:
# https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132
#
# Patch is applied for >= 14 as the versions below are broken anyways.
++ lib.optional (
stdenv.targetPlatform.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0"
lib.versionAtLeast metadata.release_version "14"
&& stdenv.targetPlatform.isDarwin
&& lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0"
) (metadata.getVersionFile "lldb/cpu_subtype_arm64e_replacement.patch");
}
// lib.optionalAttrs (lib.versions.major metadata.release_version == "16") {