anchor.diff:      prometheus_listen_addr = "localhost:9236"
   
       [git]
  -    bin_path = "${pkgs.git}/bin/git"
  +    bin_path = "${gitPackage}/bin/git"
   
       [gitaly-ruby]
       dir = "${cfg.packages.gitaly.ruby}"
  
positive.code:       path = with pkgs; [
          openssh
          procps  # See https://gitlab.com/gitlab-org/gitaly/issues/1562
          git
          cfg.packages.gitaly.rubyEnv
          cfg.packages.gitaly.rubyEnv.wrappedRuby
          gzip
  
negative.code:                         config.services.postgresql.package
                        else
                          pkgs.postgresql_12;
  
    # Git 2.36.1 seemingly contains a commit-graph related bug which is
    # easily triggered through GitLab, so we downgrade it to 2.35.x
    # until this issue is solved. See
    # https://gitlab.com/gitlab-org/gitlab/-/issues/360783#note_992870101.
    gitPackage =
      let
        version = "2.35.3";
      in
        pkgs.git.overrideAttrs (oldAttrs: rec {
          inherit version;
          src = pkgs.fetchurl {
            url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
            sha256 = "sha256-FenbT5vy7Z//MMtioAxcfAkBAV9asEjNtOiwTd7gD6I=";
          };
        });
  
    gitlabSocket = "${cfg.statePath}/tmp/sockets/gitlab.socket";
    gitalySocket = "${cfg.statePath}/tmp/sockets/gitaly.socket";
  