From 0c19bf42285e252ffce1c6b289d4b168aa855d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 4 Feb 2023 15:08:32 +0100 Subject: [PATCH] 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. --- pkgs/development/libraries/openbabel/2.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/openbabel/2.nix b/pkgs/development/libraries/openbabel/2.nix index 3e989561470..0cc752d993f 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 ' -i include/openbabel/obutil.h # gcc12 + ''; + buildInputs = [ zlib libxml2 eigen python3 cairo pcre ]; nativeBuildInputs = [ cmake pkg-config ];