python312Packages.pygit2: fix build with GCC 14 (#366327)
This commit is contained in:
@@ -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"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user