2020-11-23 21:17:32 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, autoreconfHook
|
|
|
|
, gnused
|
|
|
|
, boost
|
|
|
|
, fuse
|
|
|
|
, log4cxx
|
|
|
|
, zookeeper
|
|
|
|
, zookeeper_mt
|
|
|
|
}:
|
2015-11-20 01:53:34 +01:00
|
|
|
|
2020-11-23 21:17:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zkfuse";
|
2020-11-23 21:17:32 +01:00
|
|
|
inherit (zookeeper_mt) version src;
|
2015-11-20 01:53:34 +01:00
|
|
|
|
2020-11-23 21:17:32 +01:00
|
|
|
sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-contrib/zookeeper-contrib-zkfuse";
|
2015-11-20 01:53:34 +01:00
|
|
|
|
2020-11-23 21:17:32 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook gnused ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ zookeeper_mt log4cxx boost fuse ];
|
2015-11-20 01:53:34 +01:00
|
|
|
|
2020-11-23 21:17:32 +01: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 01:53:34 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -v src/zkfuse $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
platforms = platforms.linux;
|
2020-11-23 21:17:32 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan ztzg ];
|
2018-07-22 16:28:44 +02:00
|
|
|
license = licenses.asl20;
|
2015-11-20 01:53:34 +01:00
|
|
|
};
|
|
|
|
}
|