diff --git a/pkgs/development/libraries/tk/generic.nix b/pkgs/development/libraries/tk/generic.nix index 7a4b0a76d3b4..dfe14f22ec45 100644 --- a/pkgs/development/libraries/tk/generic.nix +++ b/pkgs/development/libraries/tk/generic.nix @@ -24,7 +24,7 @@ tcl.mkTclDerivation { '' + lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11") '' substituteInPlace unix/configure* \ - --replace " -framework UniformTypeIdentifiers" "" + --replace-fail " -weak_framework UniformTypeIdentifiers" "" ''; postInstall = ''