about summary refs log tree commit diff
path: root/pkgs/servers/nosql/arangodb/default.nix
blob: 4ff12f630c9bc995e6f6c0b2d81e21be46fa4838 (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
{ stdenv, fetchFromGitHub, openssl, zlib, python, gyp, bash, go, readline }:

stdenv.mkDerivation rec {
  version = "2.5.3";
  name    = "arangodb-${version}";

  src = fetchFromGitHub {
    repo = "arangodb";
    owner = "arangodb";
    rev = "67d995aa22ea341129398326fa10c5f6c14e94e9";
    sha256 = "1v07fghf2jd2mvkfqhag0xblf6sxw7kx9kmhs2xpyrpns58lirvc";
  };

  buildInputs = [
    openssl zlib python gyp go readline
  ];

  configureFlagsArray = [ "--with-openssl-lib=${openssl}/lib" ];

  patchPhase = ''
    substituteInPlace 3rdParty/V8-3.31.74.1/build/gyp/gyp --replace /bin/bash ${bash}/bin/bash
    substituteInPlace 3rdParty/etcd/build --replace /bin/bash ${bash}/bin/bash
    '';

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    homepage = "https://github.com/arangodb/arangodb";
    description = "A native multi-model database with flexible data models for documents, graphs, and key-values";
    license = licenses.asl20;
    platforms = platforms.linux;
    maintainers = [ maintainers.flosse ];
  };
}