Merge pull request #250334 from trofi/gieos-gcc-13-fix

This commit is contained in:
Artturi 2023-09-05 00:27:06 +03:00 committed by GitHub
commit 78729face0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
{ lib
, fetchurl
, fetchpatch
, stdenv
, testers
, cmake
@ -14,6 +15,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw=";
};
patches = [
# Pull upstream fix of `gcc-13` build failure:
# https://github.com/libgeos/geos/pull/805
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/libgeos/geos/commit/bea3188be44075034fd349f5bb117c943bdb7fb1.patch";
hash = "sha256-dQT3Hf9YJchgjon/r46TLIXXbE6C0ZnewyvfYJea4jM=";
})
];
nativeBuildInputs = [ cmake ];
doCheck = true;