2018-07-16 00:40:53 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, openssl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "aerospike-server";
|
2018-07-16 00:40:53 +00:00
|
|
|
version = "4.2.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aerospike";
|
|
|
|
repo = "aerospike-server";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vqi3xir4l57v62q1ns3713vajxffs6crss8fpvbcs57p7ygx3s7";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
|
2019-11-03 11:56:21 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=address-of-packed-member"
|
|
|
|
"-Wno-error=format-overflow"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
];
|
2019-01-11 09:12:08 +00:00
|
|
|
|
2018-07-16 00:40:53 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs build/gen_version
|
|
|
|
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/udf
|
|
|
|
cp target/Linux-x86_64/bin/asd $out/bin/asd
|
|
|
|
cp -dpR modules/lua-core/src $out/share/udf/lua
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Flash-optimized, in-memory, NoSQL database";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://aerospike.com/";
|
2018-07-16 00:40:53 +00:00
|
|
|
license = licenses.agpl3;
|
2018-12-09 19:46:13 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-07-16 08:08:55 +00:00
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2018-07-16 00:40:53 +00:00
|
|
|
};
|
|
|
|
}
|