zkfuse: adapt to zookeeper_mt 3.6.2
This commit is contained in:
parent
98236860dc
commit
03dec29a4f
|
@ -1,14 +1,30 @@
|
||||||
{ stdenv, lib, zookeeper, zookeeper_mt, fuse, autoreconfHook, log4cxx, boost }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, autoreconfHook
|
||||||
|
, gnused
|
||||||
|
, boost
|
||||||
|
, fuse
|
||||||
|
, log4cxx
|
||||||
|
, zookeeper
|
||||||
|
, zookeeper_mt
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zkfuse";
|
pname = "zkfuse";
|
||||||
inherit (zookeeper) version src;
|
inherit (zookeeper_mt) version src;
|
||||||
|
|
||||||
sourceRoot = "${zookeeper.name}/src/contrib/zkfuse";
|
sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-contrib/zookeeper-contrib-zkfuse";
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook gnused ];
|
||||||
buildInputs = [ zookeeper_mt log4cxx boost fuse ];
|
buildInputs = [ zookeeper_mt log4cxx boost fuse ];
|
||||||
|
|
||||||
|
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>,'
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -v src/zkfuse $out/bin
|
cp -v src/zkfuse $out/bin
|
||||||
|
@ -16,7 +32,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ cstrahan ];
|
maintainers = with maintainers; [ cstrahan ztzg ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue