11 stdenv.mkDerivation rec {
13 inherit (zookeeper_mt) version src;
15 sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-contrib/zookeeper-contrib-zkfuse";
17 nativeBuildInputs = [ autoreconfHook ];
18 buildInputs = [ zookeeper_mt log4cxx boost fuse ];
21 # Make the async API accessible, and use the proper include path.
22 sed -i src/zkadapter.h \
23 -e '/"zookeeper\.h"/i#define THREADED' \
24 -e 's,"zookeeper\.h",<zookeeper/zookeeper.h>,'
27 # c++17 (gcc-11's default) breaks the build as:
28 # zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications
29 NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
33 cp -v src/zkfuse $out/bin
37 platforms = platforms.linux;
38 maintainers = with maintainers; [ cstrahan ztzg ];
39 license = licenses.asl20;