anchor.diff:  , pkg-config, glib, libsecret
   , gzip # needed at runtime by gitweb.cgi
   , withSsh ? false
  +, doInstallCheck ? !stdenv.isDarwin  # extremely slow on darwin
   }:
   
   assert osxkeychainSupport -> stdenv.isDarwin;
  
positive.code:   passthru = {
      shellPath = "/bin/git-shell";
      tests = {
        buildbot-integration = nixosTests.buildbot;
      };
    };
  
negative.code:   gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
  in
  
  stdenv.mkDerivation (finalAttrs: {
    pname = "git"
      + lib.optionalString svnSupport "-with-svn"
      + lib.optionalString (!svnSupport && !guiSupport && !sendEmailSupport && !withManual && !pythonSupport && !withpcre2) "-minimal";
  