summary refs log tree commit diff
path: root/pkgs/tools/filesystems/zkfuse/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/filesystems/zkfuse/default.nix')
-rw-r--r--pkgs/tools/filesystems/zkfuse/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/zkfuse/default.nix b/pkgs/tools/filesystems/zkfuse/default.nix
new file mode 100644
index 00000000000..04755108bc0
--- /dev/null
+++ b/pkgs/tools/filesystems/zkfuse/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, lib, zookeeper, zookeeper_mt, fuse, pkgconfig, autoreconfHook, log4cxx, boost, tree }:
+
+stdenv.mkDerivation rec {
+  name = "zkfuse";
+
+  src = zookeeper.src;
+  patches = [
+    # see: https://issues.apache.org/jira/browse/ZOOKEEPER-1929
+    ./zookeeper-1929.patch
+  ];
+
+  setSourceRoot = "export sourceRoot=${zookeeper.name}/src/contrib/zkfuse";
+
+  buildInputs = [ autoreconfHook zookeeper_mt log4cxx boost fuse ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp -v src/zkfuse $out/bin
+  '';
+
+  meta = with lib; {
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ cstrahan ];
+  };
+}