Skip to content

Commit

Permalink
precice: fixup build after libxml2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 11, 2024
1 parent e98b61d commit 1a6f932
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/libraries/precice/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 1a6f932

Please sign in to comment.