···1122411224 # This returns the minimum suported version for the platform. The
1122511225 # assumption is that or any later version is good.
1122611226 choose = platform:
1122711227- /**/ if platform.isDarwin then "7"
1122811228- else if platform.isFreeBSD then "7"
1122911229- else if platform.isAndroid then "12"
1123011230- else if platform.isLinux then "7"
1123111231- else if platform.isWasm then "8"
1123211232- else "latest";
1122711227+ /**/ if platform.isDarwin then 7
1122811228+ else if platform.isFreeBSD then 7
1122911229+ else if platform.isAndroid then 12
1123011230+ else if platform.isLinux then 7
1123111231+ else if platform.isWasm then 8
1123211232+ else 11; # latest
1123311233 # We take the "max of the mins". Why? Since those are lower bounds of the
1123411234 # supported version set, this is like intersecting those sets and then
1123511235 # taking the min bound of that.
1123611236- minSupported = lib.max (choose stdenv.hostPlatform) (choose stdenv.targetPlatform);
1123611236+ minSupported = toString (lib.trivial.max (choose stdenv.hostPlatform) (choose
1123711237+ stdenv.targetPlatform));
1123711238 in pkgs.${"llvmPackages_${minSupported}"};
11238112391123911240 llvmPackages_5 = recurseIntoAttrs (callPackage ../development/compilers/llvm/5 {