diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-02-04 15:08:32 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-02-04 15:09:23 +0100 |
commit | 0c19bf42285e252ffce1c6b289d4b168aa855d36 (patch) | |
tree | 1f3ab22c872a7f9081a6fa7ded82ee268c2516cc /pkgs/development/libraries/openbabel | |
parent | 33919d25f0c873b0c73e2f8d0859fab3bd0d1b26 (diff) |
openbabel2: fixup build with gcc12
This is actually the one I wanted to fix in commit ad1bdf4e77f6, but I didn't notice that we have two attributes and expressions.
Diffstat (limited to 'pkgs/development/libraries/openbabel')
-rw-r--r-- | pkgs/development/libraries/openbabel/2.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openbabel/2.nix b/pkgs/development/libraries/openbabel/2.nix index 3e989561470c6..0cc752d993fb2 100644 --- a/pkgs/development/libraries/openbabel/2.nix +++ b/pkgs/development/libraries/openbabel/2.nix @@ -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 ]; |