zkfuse: add a -std=c++14 workaround for gcc-11

Otherwise the build fails as:

    zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications
This commit is contained in:
Sergei Trofimovich
2022-04-21 08:12:34 +01:00
parent b871e84bdf
commit 06e48b1552
@@ -25,6 +25,10 @@ stdenv.mkDerivation rec {
-e 's,"zookeeper\.h",<zookeeper/zookeeper.h>,'
'';
# c++17 (gcc-11's default) breaks the build as:
# zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
installPhase = ''
mkdir -p $out/bin
cp -v src/zkfuse $out/bin