2022-10-27 00:40:29 +00:00
|
|
|
{ gcc10Stdenv
|
2022-10-06 00:51:15 +00:00
|
|
|
, git
|
2022-10-05 17:04:04 +00:00
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, cmake
|
|
|
|
, python3
|
|
|
|
, perl
|
|
|
|
, snappy
|
|
|
|
, lzo
|
|
|
|
, which
|
|
|
|
}:
|
2015-04-30 14:48:57 +00:00
|
|
|
|
2022-10-27 00:40:29 +00:00
|
|
|
gcc10Stdenv.mkDerivation rec {
|
2022-10-05 22:05:42 +00:00
|
|
|
pname = "arangodb";
|
2022-10-06 00:51:15 +00:00
|
|
|
version = "3.10.0";
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "arangodb";
|
|
|
|
owner = "arangodb";
|
|
|
|
rev = "v${version}";
|
2022-10-06 00:51:15 +00:00
|
|
|
sha256 = "0vjdiarfnvpfl4hnqgr7jigxgq3b3zhx88n8liv1zqa1nlvykfrb";
|
|
|
|
fetchSubmodules = true;
|
2022-10-05 22:05:42 +00:00
|
|
|
};
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-06 00:51:15 +00:00
|
|
|
nativeBuildInputs = [ cmake git perl python3 which ];
|
2022-10-05 21:52:58 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
buildInputs = [ openssl zlib snappy lzo ];
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
# prevent failing with "cmake-3.13.4/nix-support/setup-hook: line 10: ./3rdParty/rocksdb/RocksDBConfig.cmake.in: No such file or directory"
|
|
|
|
dontFixCmake = true;
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
preConfigure = "patchShebangs utils";
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -ie 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
# with nixpkgs, it has no sense to check for a version update
|
|
|
|
substituteInPlace js/client/client.js --replace "require('@arangodb').checkAvailableVersions();" ""
|
|
|
|
substituteInPlace js/server/server.js --replace "require('@arangodb').checkAvailableVersions();" ""
|
|
|
|
'';
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-27 00:25:23 +00:00
|
|
|
cmakeFlags = [ "-DUSE_MAINTAINER_MODE=OFF" ];
|
2019-03-01 08:21:02 +00:00
|
|
|
|
2022-10-05 22:05:42 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.arangodb.com";
|
|
|
|
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 maintainers.jsoo1 ];
|
2022-10-05 21:52:58 +00:00
|
|
|
};
|
2015-04-30 14:48:57 +00:00
|
|
|
}
|