precice: fixup build after libxml2 update

This commit is contained in:
Vladimír Čunát 2024-01-11 16:58:00 +01:00
parent e98b61d9c2
commit 1a6f9328ab
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -18,7 +18,11 @@ stdenv.mkDerivation rec {
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-D_GNU_SOURCE" ]);
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.isDarwin [ "-D_GNU_SOURCE" ]
# libxml2-2.12 changed const qualifiers
++ [ "-fpermissive" ]
);
nativeBuildInputs = [ cmake gcc ];
buildInputs = [ boost eigen libxml2 mpi python3 python3.pkgs.numpy ];