tk-{8_5,8_6,9_0}: remove code for macOS < 11

This commit is contained in:
Emily
2025-01-04 22:51:23 +00:00
parent 42522c0850
commit f43d8aed31
+2 -10
View File
@@ -1,5 +1,5 @@
{ stdenv, lib, src, pkg-config, tcl, libXft, zip, zlib, patches ? []
, enableAqua ? stdenv.hostPlatform.isDarwin, darwin
, enableAqua ? stdenv.hostPlatform.isDarwin
, ... }:
tcl.mkTclDerivation {
@@ -21,10 +21,6 @@ tcl.mkTclDerivation {
for file in $(find library/demos/. -type f ! -name "*.*"); do
substituteInPlace $file --replace "exec wish" "exec $out/bin/wish"
done
''
+ lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") ''
substituteInPlace unix/configure* \
--replace-fail " -weak_framework UniformTypeIdentifiers" ""
'';
postInstall = ''
@@ -62,11 +58,7 @@ tcl.mkTclDerivation {
propagatedBuildInputs = [
libXft
] ++ lib.optionals enableAqua ([
darwin.apple_sdk.frameworks.Cocoa
] ++ lib.optionals (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") [
darwin.apple_sdk.frameworks.UniformTypeIdentifiers
]);
];
enableParallelBuilding = true;