git.iko.soy/typeable/nixpkgs
on master help sign in
git: Fix USE_LIBPCRE2 configuration

Previously this was injected during install, causing the build system to rebuild the entire package.

commit432df5b1cf9fc6b36634ee26c621cda462dd98b2 authorBen Gamari <ben@smart-cactus.org> dateSun 10 Dec 2017, 14:08 (9 years ago) parentae0a14d
1 file changed+3−4
pkgs/applications/version-management/git-and-tools/git/default.nix+3−4
pkgs/applications/version-management/git-and-tools/git/default.nix+3−4
@@ -63,7 +63,8 @@ stdenv.mkDerivation {
6363 ++ (if pythonSupport then ["PYTHON_PATH=${python}/bin/python"] else ["NO_PYTHON=1"])
6464 ++ stdenv.lib.optionals stdenv.isSunOS ["INSTALL=install" "NO_INET_NTOP=" "NO_INET_PTON="]
6565 ++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc/"])
66− ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"];
66+ ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl ["NO_SYS_POLL_H=1" "NO_GETTEXT=YesPlease"]
67+ ++ stdenv.lib.optional withpcre2 "USE_LIBPCRE2=1";
6768
6869 # build git-credential-osxkeychain if darwin
6970 postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
@@ -76,9 +77,7 @@ stdenv.mkDerivation {
7677 # so that `SPARSE_FLAGS' corresponds to the current architecture...
7778 #doCheck = true;
7879
79− installFlags = "NO_INSTALL_HARDLINKS=1"
80− + (if withpcre2 then " USE_LIBPCRE2=1" else "");
81−
80+ installFlags = "NO_INSTALL_HARDLINKS=1";
8281
8382 preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
8483 mkdir -p $out/bin