3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/zkfuse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
836 B
Nix
Raw Normal View History

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 {
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 ];
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 15:28:44 +01:00
license = licenses.asl20;
2015-11-20 00:53:34 +00:00
};
}