openbabel2: fixup build with gcc12

This is actually the one I wanted to fix in commit ad1bdf4e77,
but I didn't notice that we have two attributes and expressions.
This commit is contained in:
Vladimír Čunát 2023-02-04 15:08:32 +01:00
parent 33919d25f0
commit 0c19bf4228
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
})
];
postPatch = ''
sed '1i#include <ctime>' -i include/openbabel/obutil.h # gcc12
'';
buildInputs = [ zlib libxml2 eigen python3 cairo pcre ];
nativeBuildInputs = [ cmake pkg-config ];