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.
This commit is contained in:
sternenseemann 2024-10-15 13:44:01 +02:00
parent f9a10f14b0
commit ce6c31c312

View File

@ -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") {