From dfe107b23cbb08e459742b467f04a3b773073335 Mon Sep 17 00:00:00 2001 From: Jos van Bakel Date: Sat, 6 Nov 2021 10:36:50 +0100 Subject: [PATCH] gitaly: fix libgit2 dependency --- .../version-management/gitlab/gitaly/default.nix | 1 + pkgs/top-level/all-packages.nix | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/gitlab/gitaly/default.nix b/pkgs/applications/version-management/gitlab/gitaly/default.nix index c6f4df537748..2993d1a013fc 100644 --- a/pkgs/applications/version-management/gitlab/gitaly/default.nix +++ b/pkgs/applications/version-management/gitlab/gitaly/default.nix @@ -20,6 +20,7 @@ let }; }; }; + version = "14.4.1"; gitaly_package = "gitlab.com/gitlab-org/gitaly/v${lib.versions.major version}"; in diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fdd881fba23f..c6fbceb3b3a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5676,7 +5676,9 @@ with pkgs; gitleaks = callPackage ../tools/security/gitleaks { }; - gitaly = callPackage ../applications/version-management/gitlab/gitaly { }; + gitaly = callPackage ../applications/version-management/gitlab/gitaly { + libgit2 = libgit2_1_1; # git2go only supports v1.1.x + }; gitstats = callPackage ../applications/version-management/gitstats { }; @@ -16305,6 +16307,16 @@ with pkgs; ]; }); + libgit2_1_1 = libgit2.overrideAttrs (oldAttrs: rec { + version = "1.1.1"; + src = fetchFromGitHub { + owner = "libgit2"; + repo = "libgit2"; + rev = "v${version}"; + sha256 = "sha256-SxceIxT0aeiiiZCeSIe6EOa+MyVpQVaiv/ZZn6fkwIc="; + }; + }); + libgit2-glib = callPackage ../development/libraries/libgit2-glib { }; libhsts = callPackage ../development/libraries/libhsts { };