git: make nls support optional
Add option "nlsSupport" (true by default, maching upstream defaults) to make nls support configurable. This change does not trigger rebuild.
This commit is contained in:
parent
9774276bb1
commit
a5985162e3
@ -6,6 +6,7 @@
|
|||||||
, libxslt, tcl, tk, makeWrapper, libiconv
|
, libxslt, tcl, tk, makeWrapper, libiconv
|
||||||
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
|
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
|
||||||
, perlSupport ? true
|
, perlSupport ? true
|
||||||
|
, nlsSupport ? true
|
||||||
, guiSupport
|
, guiSupport
|
||||||
, withManual ? true
|
, withManual ? true
|
||||||
, pythonSupport ? true
|
, pythonSupport ? true
|
||||||
@ -98,6 +99,7 @@ stdenv.mkDerivation {
|
|||||||
++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc"])
|
++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc"])
|
||||||
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
|
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
|
||||||
++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1"
|
++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1"
|
||||||
|
++ stdenv.lib.optional (!nlsSupport) "NO_GETTEXT=1"
|
||||||
# git-gui refuses to start with the version of tk distributed with
|
# git-gui refuses to start with the version of tk distributed with
|
||||||
# macOS Catalina. We can prevent git from building the .app bundle
|
# macOS Catalina. We can prevent git from building the .app bundle
|
||||||
# by specifying an invalid tk framework. The postInstall step will
|
# by specifying an invalid tk framework. The postInstall step will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user