2015-05-02 13:37:31 +01:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, zlib, python, gyp, bash, go, readline }:
|
2015-04-30 15:48:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-02 13:37:31 +01:00
|
|
|
version = "2.5.3";
|
2015-04-30 15:48:57 +01:00
|
|
|
name = "arangodb-${version}";
|
|
|
|
|
2015-05-02 13:37:31 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "arangodb";
|
|
|
|
owner = "arangodb";
|
|
|
|
rev = "67d995aa22ea341129398326fa10c5f6c14e94e9";
|
|
|
|
sha256 = "1v07fghf2jd2mvkfqhag0xblf6sxw7kx9kmhs2xpyrpns58lirvc";
|
2015-04-30 15:48:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl zlib python gyp go readline
|
|
|
|
];
|
|
|
|
|
2016-01-24 07:30:05 +00:00
|
|
|
configureFlagsArray = [ "--with-openssl-lib=${openssl.out}/lib" ];
|
2015-04-30 15:48:57 +01:00
|
|
|
|
2016-03-22 00:40:04 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
2015-04-30 15:48:57 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|