v8, openbabel: fixup build with gcc12

This commit is contained in:
Vladimír Čunát 2023-02-04 10:19:58 +01:00
parent ae7d9a3fe7
commit ad1bdf4e77
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-wQpgdfCyBAoh4pmj9j7wPTlMtraJ62w/EShxi/olVMY=";
};
postPatch = ''
sed '1i#include <ctime>' -i include/openbabel/obutil.h # gcc12
'';
buildInputs = [ zlib libxml2 eigen python cairo pcre swig rapidjson ];
nativeBuildInputs = [ cmake pkg-config ];

View File

@ -110,6 +110,7 @@ stdenv.mkDerivation rec {
--replace "-Wl,-fatal_warnings" ""
''}
touch build/config/gclient_args.gni
sed '1i#include <utility>' -i src/heap/cppgc/prefinalizer-handler.h # gcc12
'';
llvmCcAndBintools = symlinkJoin { name = "llvmCcAndBintools"; paths = [ stdenv.cc llvmPackages.llvm ]; };