git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commita5985162e31587ae04ddc65c4e06146c2aff104c authorDmitry Bogatov <KAction@disroot.org> dateSun 14 Jun 2020, 00:05 (6 years ago) parent9774276
1 file changed+2
pkgs/applications/version-management/git-and-tools/git/default.nix+2
pkgs/applications/version-management/git-and-tools/git/default.nix+2
@@ -6,6 +6,7 @@
66, libxslt, tcl, tk, makeWrapper, libiconv
77, svnSupport, subversionClient, perlLibs, smtpPerlLibs
88, perlSupport ? true
9+, nlsSupport ? true
910, guiSupport
1011, withManual ? true
1112, pythonSupport ? true
@@ -98,6 +99,7 @@ stdenv.mkDerivation {
9899 ++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc"])
99100 ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
100101 ++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1"
102+ ++ stdenv.lib.optional (!nlsSupport) "NO_GETTEXT=1"
101103 # git-gui refuses to start with the version of tk distributed with
102104 # macOS Catalina. We can prevent git from building the .app bundle
103105 # by specifying an invalid tk framework. The postInstall step will