anchor.diff:      "prefix=\${out}"
       "SHELL_PATH=${stdenv.shell}"
     ]
  +  ++ (if perlSupport then ["PERL_PATH=${perl}/bin/perl"] else ["NO_PERL=1"])
     ++ (if pythonSupport then ["PYTHON_PATH=${python}/bin/python"] else ["NO_PYTHON=1"])
     ++ stdenv.lib.optionals stdenv.isSunOS ["INSTALL=install" "NO_INET_NTOP=" "NO_INET_PTON="]
     ++ (if stdenv.isDarwin then ["NO_APPLE_COMMON_CRYPTO=1"] else ["sysconfdir=/etc/"])
  
positive.code:       SCRIPT="$(cat <<'EOS'
          BEGIN{
            @a=(
              '${perl}/bin/perl', '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk',
              '${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname',
              '${coreutils}/bin/wc', '${coreutils}/bin/tr'
            );
          }
          foreach $c (@a) {
  
negative.code:       substituteInPlace $out/libexec/git-core/git-sh-i18n \
            --subst-var-by gettext ${gettext}
  
        # Also put git-http-backend into $PATH, so that we can use smart
        # HTTP(s) transports for pushing
        ln -s $out/libexec/git-core/git-http-backend $out/bin/git-http-backend
      '' + stdenv.lib.optionalString perlSupport ''
        # put in separate package for simpler maintenance
        mv $out/share/gitweb $gitweb/
  
        # wrap perl commands
        gitperllib=$out/lib/perl5/site_perl
  