diff options
author | OTABI Tomoya <tomoya.otabi@gmail.com> | 2023-11-03 10:39:45 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 10:39:45 +0900 |
commit | 68477164090531d3d5b30818d185a6696ac9be07 (patch) | |
tree | f247cc0c21bbcc2491aa8e2feb26ac8290d1ea01 /pkgs/applications/science/chemistry | |
parent | 75a11d85b89dd3d74ffacc7f6900e0c189c5cb95 (diff) | |
parent | d5f9e4c783c36ebba13b66a26ca0ee3696cf026a (diff) |
Merge pull request #264692 from wegank/gdal-fix-pre
superlu, apbs, hdf4: fix build with clang 16
Diffstat (limited to 'pkgs/applications/science/chemistry')
-rw-r--r-- | pkgs/applications/science/chemistry/apbs/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/science/chemistry/apbs/default.nix b/pkgs/applications/science/chemistry/apbs/default.nix index f4a2bab4243d6..228c77ee5c0e4 100644 --- a/pkgs/applications/science/chemistry/apbs/default.nix +++ b/pkgs/applications/science/chemistry/apbs/default.nix @@ -33,6 +33,10 @@ let "-DBUILD_SUPERLU=OFF" ]; + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int"; + }; + buildInputs = [ blas superlu @@ -92,6 +96,10 @@ stdenv.mkDerivation (finalAttrs: { "-DENABLE_TESTS=1" ]; + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; + }; + doCheck = true; meta = with lib; { |