Merge #27962: git: pcre1 -> pcre2

Except for gitMinimal, as pcre1 is in closure anyway so using pcre2
increases the size by ~1.4 MB.

+7 -2
+6 -2
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 1 { fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio 2 , gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc 3 - , gzip, openssh 4 , asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45 5 , libxslt, tcl, tk, makeWrapper, libiconv 6 , svnSupport, subversionClient, perlLibs, smtpPerlLibs, gitwebPerlLibs 7 , guiSupport 8 , withManual ? true 9 , pythonSupport ? true 10 , sendEmailSupport 11 , darwin 12 }: ··· 44 ++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x 45 docbook_xsl docbook_xml_dtd_45 libxslt ] 46 ++ stdenv.lib.optionals guiSupport [tcl tk] 47 ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ]; 48 49 ··· 70 # so that `SPARSE_FLAGS' corresponds to the current architecture... 71 #doCheck = true; 72 73 - installFlags = "NO_INSTALL_HARDLINKS=1"; 74 75 preInstall = stdenv.lib.optionalString stdenv.isDarwin '' 76 mkdir -p $out/bin
··· 1 { fetchurl, stdenv, curl, openssl, zlib, expat, perl, python, gettext, cpio 2 , gnugrep, gnused, gawk, coreutils # needed at runtime by git-filter-branch etc 3 + , gzip, openssh, pcre2 4 , asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45 5 , libxslt, tcl, tk, makeWrapper, libiconv 6 , svnSupport, subversionClient, perlLibs, smtpPerlLibs, gitwebPerlLibs 7 , guiSupport 8 , withManual ? true 9 , pythonSupport ? true 10 + , withpcre2 ? true 11 , sendEmailSupport 12 , darwin 13 }: ··· 45 ++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x 46 docbook_xsl docbook_xml_dtd_45 libxslt ] 47 ++ stdenv.lib.optionals guiSupport [tcl tk] 48 + ++ stdenv.lib.optionals withpcre2 [ pcre2 ] 49 ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.Security ]; 50 51 ··· 72 # so that `SPARSE_FLAGS' corresponds to the current architecture... 73 #doCheck = true; 74 75 + installFlags = "NO_INSTALL_HARDLINKS=1" 76 + + (if withpcre2 then " USE_LIBPCRE2=1" else ""); 77 + 78 79 preInstall = stdenv.lib.optionalString stdenv.isDarwin '' 80 mkdir -p $out/bin
+1
pkgs/top-level/all-packages.nix
··· 14448 gitMinimal = git.override { 14449 withManual = false; 14450 pythonSupport = false; 14451 }; 14452 14453 gitRepo = callPackage ../applications/version-management/git-repo {
··· 14448 gitMinimal = git.override { 14449 withManual = false; 14450 pythonSupport = false; 14451 + withpcre2 = false; 14452 }; 14453 14454 gitRepo = callPackage ../applications/version-management/git-repo {