anchor.diff:         for prog in bin/gitk libexec/git-core/git-gui; do
            notSupported "$out/$prog"
          done
  -     '');
  +     '')
  +   + stdenv.lib.optionalString stdenv.isDarwin ''
  +    # enable git-credential-osxkeychain by default if darwin
  +    cat > $out/etc/gitconfig << EOF
  +[credential]
  +	helper = osxkeychain
  +EOF
  +  '';
  +
   
     enableParallelBuilding = true;
   
  
positive.code:   # without this, git fails when trying to check for /etc/gitconfig existence
    propagatedSandboxProfile = stdenv.lib.sandbox.allowDirectoryList "/etc";
  
    makeFlags = "prefix=\${out} sysconfdir=/etc/ PERL_PATH=${perl}/bin/perl SHELL_PATH=${stdenv.shell} "
        + (if pythonSupport then "PYTHON_PATH=${python}/bin/python" else "NO_PYTHON=1")
        + (if stdenv.isSunOS then " INSTALL=install NO_INET_NTOP= NO_INET_PTON=" else "")
        + (if stdenv.isDarwin then " NO_APPLE_COMMON_CRYPTO=1" else "");
  
  
    # FIXME: "make check" requires Sparse; the Makefile must be tweaked
    # so that `SPARSE_FLAGS' corresponds to the current architecture...
    #doCheck = true;
  
    installFlags = "NO_INSTALL_HARDLINKS=1";
  
    postInstall =
      ''
  
negative.code: , withManual ? true
  , pythonSupport ? true
  , sendEmailSupport
  , darwin
  }:
  
  let
  