turbogit: make libgit2 override local to package

This is the last user of an old libgit2 version which cannot
easily be updated and takes away the burden from the libgit2
maintainers.
This commit is contained in:
Sandro Jäckel 2024-02-24 20:42:43 +01:00 committed by sternenseemann
parent 8042f62417
commit b9a613aa8c

View File

@ -20117,7 +20117,22 @@ with pkgs;
ttyd = callPackage ../servers/ttyd { };
turbogit = callPackage ../development/tools/turbogit {
libgit2 = libgit2_1_3_0;
libgit2 = libgit2.overrideAttrs rec {
version = "1.3.0";
src = pkgs.fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
hash = "sha256-7atNkOBzX+nU1gtFQEaE+EF1L+eex+Ajhq2ocoJY920=";
};
patches = [];
# tests fail on old version
doCheck = false;
meta = libgit2.meta // {
maintainers = [];
knownVulnerabilities = [ "CVE-2024-24575" "CVE-2024-24577" "CVE-2022-29187" "CVE 2022-24765" ];
};
};
};
tweak = callPackage ../applications/editors/tweak { };