summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-04-21 08:12:06 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-04-21 08:12:34 +0100
commit06e48b1552f20408be3a76edc3b00a70a556c6bb (patch)
treed21a2460afb614f7e9677aab9c7d52fe189fba69
parentb871e84bdf6b4dbfec0973db1d91c924a20f75c9 (diff)
downloadnixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar.gz
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar.bz2
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar.lz
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar.xz
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.tar.zst
nixpkgs-06e48b1552f20408be3a76edc3b00a70a556c6bb.zip
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
-rw-r--r--pkgs/tools/filesystems/zkfuse/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/zkfuse/default.nix b/pkgs/tools/filesystems/zkfuse/default.nix
index 456444f3bf5..14938113a1e 100644
--- a/pkgs/tools/filesystems/zkfuse/default.nix
+++ b/pkgs/tools/filesystems/zkfuse/default.nix
@@ -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