v8, openbabel: fixup build with gcc12
This commit is contained in:
parent
ae7d9a3fe7
commit
ad1bdf4e77
2 changed files with 5 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
|
@ -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 ]; };
|
||||
|
|
Loading…
Reference in a new issue