about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/zkfuse/default.nix
blob: 04755108bc06b193d55bb6f7ed80262fc25374fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 ];
  };
}