about summary refs log tree commit diff
path: root/pkgs/servers/nosql/hyperdex/default.nix
blob: 036a3412b8648669d8a91ce1b81540c485cbe80e (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ stdenv, fetchurl, makeWrapper, unzip, autoconf, automake, libtool,
  python, sodium, pkgconfig, popt, glog, xz, json_c, gperf, yacc,
  flex, haskellPackages, help2man, autoconf-archive, callPackage }:

assert stdenv.isLinux;

let
hyperleveldb = callPackage ./hyperleveldb.nix {};
libpo6 = callPackage ./libpo6.nix {};
libe = callPackage ./libe.nix { inherit libpo6; };
busybee = callPackage ./busybee.nix { inherit libpo6 libe; };
replicant = callPackage ./replicant.nix {
  inherit libpo6 libe busybee hyperleveldb;
};
libmacaroons = callPackage ./libmacaroons.nix { };

in
stdenv.mkDerivation rec {
  name = "hyperdex-${version}";
  version = "1.5.0";

  src = fetchurl {
    url = "https://github.com/rescrv/HyperDex/archive/releases/${version}.zip";
    sha256 = "0s1capy2hj45f5rmdb4fk0wxy7vz69krplhba57f6wrkpcz1zb57";
  };

  buildInputs = [
    autoconf
    autoconf-archive
    automake
    busybee
    glog
    hyperleveldb
    json_c
    libe
    libmacaroons
    libpo6
    libtool
    pkgconfig
    popt
    python
    replicant
    unzip
    gperf
    yacc
    flex
    help2man
    haskellPackages.pandoc
  ];
  preConfigure = "autoreconf -fi";

  meta = with stdenv.lib; {
    description = "HyperDex is a scalable, searchable key-value store";
    homepage = http://hyperdex.org;
    license = licenses.bsd3;
  };
}