nixpkgs/pkgs/tools/filesystems/zkfuse/default.nix

39 lines
836 B
Nix
Raw Normal View History

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 {
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 ];
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
};
}