python312Packages.pygit2: fix build with GCC 14 (#366327)

This commit is contained in:
Vladimír Čunát
2024-12-21 08:21:03 +01:00
@@ -6,6 +6,7 @@
cached-property,
cffi,
fetchPypi,
fetchpatch,
isPyPy,
libgit2,
pycparser,
@@ -26,6 +27,14 @@ buildPythonPackage rec {
hash = "sha256-eymmeWuqFfyJ1EOsjVF3VBHZseWwbcQNRYxWyFdrSKI=";
};
patches = [
# fix for GCC 14
(fetchpatch {
url = "https://github.com/libgit2/pygit2/commit/eba710e45bb40e18641c6531394bb46631e7f295.patch";
hash = "sha256-GFFzGVd/9+AcwicwOtBghhonijMp08svXTUZ/4/LmtI=";
})
];
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
'';