diff options
author | annalee <168274788+annaleeleaves@users.noreply.github.com> | 2024-05-14 11:29:07 +0000 |
---|---|---|
committer | annalee <168274788+annaleeleaves@users.noreply.github.com> | 2024-05-14 11:31:21 +0000 |
commit | 9579db6b02db1cc89083d2feee123b003a34bda3 (patch) | |
tree | cc6346f59e7442be114f0c0578120c8d2f9f54c0 /pkgs/development/libraries/openbabel | |
parent | 0fa65181a64a65b77922fc2b84f3421d756090b0 (diff) |
openbabel2: -std=c++14 for code from 2016
fix clang build due to usage of `std::binary_function`
Diffstat (limited to 'pkgs/development/libraries/openbabel')
-rw-r--r-- | pkgs/development/libraries/openbabel/2.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/openbabel/2.nix b/pkgs/development/libraries/openbabel/2.nix index 0cc752d993fb2..b69efd8664673 100644 --- a/pkgs/development/libraries/openbabel/2.nix +++ b/pkgs/development/libraries/openbabel/2.nix @@ -25,6 +25,8 @@ stdenv.mkDerivation rec { buildInputs = [ zlib libxml2 eigen python3 cairo pcre ]; + cmakeFlags = [ "-DCMAKE_CXX_STANDARD=14" ]; + nativeBuildInputs = [ cmake pkg-config ]; meta = with lib; { |