nixpkgs/pkgs/servers/nosql/arangodb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.6 KiB
Nix
Raw Normal View History

{ gcc10Stdenv
2022-10-06 00:51:15 +00:00
, git
, lib
, fetchFromGitHub
, openssl
, zlib
, cmake
, python3
, perl
, snappy
, lzo
, which
}:
2015-04-30 14:48:57 +00:00
gcc10Stdenv.mkDerivation rec {
pname = "arangodb";
2022-10-06 00:51:15 +00:00
version = "3.10.0";
src = fetchFromGitHub {
repo = "arangodb";
owner = "arangodb";
rev = "v${version}";
2022-10-06 00:51:15 +00:00
sha256 = "0vjdiarfnvpfl4hnqgr7jigxgq3b3zhx88n8liv1zqa1nlvykfrb";
fetchSubmodules = true;
};
2022-10-06 00:51:15 +00:00
nativeBuildInputs = [ cmake git perl python3 which ];
2022-10-05 21:52:58 +00:00
buildInputs = [ openssl zlib snappy lzo ];
# 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";
postPatch = ''
sed -ie 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi
# 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();" ""
'';
cmakeFlags = [
"-DUSE_MAINTAINER_MODE=OFF"
"-DUSE_GOOGLE_TESTS=off"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
# avoid reading /proc/cpuinfo for feature detection
"-DTARGET_ARCHITECTURE=generic"
];
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
}