···9595 ++ stdenv.lib.optionals stdenv.isSunOS ["INSTALL=install" "NO_INET_NTOP=" "NO_INET_PTON="]
9696 ++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc"])
9797 ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
9898- ++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1";
9898+ ++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1"
9999+ # git-gui refuses to start with the version of tk distributed with
100100+ # macOS Catalina. We can prevent git from building the .app bundle
101101+ # by specifying an invalid tk framework. The postInstall step will
102102+ # then ensure that git-gui uses tcl/tk from nixpkgs, which is an
103103+ # acceptable version.
104104+ #
105105+ # See https://github.com/Homebrew/homebrew-core/commit/dfa3ccf1e7d3901e371b5140b935839ba9d8b706
106106+ ++ stdenv.lib.optional stdenv.isDarwin "TKFRAMEWORK=/nonexistent";
99107100108101109 postBuild = ''