libe57format: fix build for gcc11

This commit is contained in:
Jonathan Ringer 2022-04-22 11:01:22 -07:00
parent 62745b65f4
commit 0beb7ab9f4
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,6 +1,7 @@
{
lib, stdenv,
cmake,
fetchpatch,
fetchFromGitHub,
boost,
xercesc,
@ -18,6 +19,14 @@ stdenv.mkDerivation rec {
sha256 = "15l23spjvak5h3n7aj3ggy0c3cwcg8mvnc9jlbd9yc2ra43bx7bp";
};
patches = [
# gcc11 header fix
(fetchpatch {
url = "https://github.com/asmaloney/libE57Format/commit/13f6a16394ce3eb50ea4cd21f31f77f53294e8d0.patch";
sha256 = "sha256-4vVhKrCxnWO106DSAk+xxo4uk6zC89m9VQAPaDJ8Ed4=";
})
];
nativeBuildInputs = [
cmake
];