2020-11-23 20:17:32 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, autoreconfHook
|
|
|
|
, gnused
|
|
|
|
, boost
|
|
|
|
, fuse
|
|
|
|
, log4cxx
|
|
|
|
, zookeeper
|
|
|
|
, zookeeper_mt
|
|
|
|
}:
|
2015-11-20 00:53:34 +00:00
|
|
|
|
2020-11-23 20:17:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zkfuse";
|
2020-11-23 20:17:32 +00:00
|
|
|
inherit (zookeeper_mt) version src;
|
2015-11-20 00:53:34 +00:00
|
|
|
|
2020-11-23 20:17:32 +00:00
|
|
|
sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-contrib/zookeeper-contrib-zkfuse";
|
2015-11-20 00:53:34 +00:00
|
|
|
|
2020-11-23 20:17:32 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gnused ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ zookeeper_mt log4cxx boost fuse ];
|
2015-11-20 00:53:34 +00:00
|
|
|
|
2020-11-23 20:17:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Make the async API accessible, and use the proper include path.
|
|
|
|
sed -i src/zkadapter.h \
|
|
|
|
-e '/"zookeeper\.h"/i#define THREADED' \
|
|
|
|
-e 's,"zookeeper\.h",<zookeeper/zookeeper.h>,'
|
|
|
|
'';
|
|
|
|
|
2015-11-20 00:53:34 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v src/zkfuse $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
platforms = platforms.linux;
|
2020-11-23 20:17:32 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ztzg ];
|
2018-07-22 14:28:44 +00:00
|
|
|
license = licenses.asl20;
|
2015-11-20 00:53:34 +00:00
|
|
|
};
|
|
|
|
}
|