mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
v8, openbabel: fixup build with gcc12
This commit is contained in:
parent
ae7d9a3fe7
commit
ad1bdf4e77
@ -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 New Issue
Block a user