2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, openssl, zlib }:
|
2018-07-16 02:40:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "aerospike-server";
|
2018-07-16 02:40:53 +02: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 ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs build/gen_version
|
|
|
|
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
|
2021-10-03 16:50:53 +02:00
|
|
|
|
|
|
|
# drop blanket -Werror
|
|
|
|
substituteInPlace make_in/Makefile.in --replace '-Werror' ""
|
2018-07-16 02:40:53 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-07-16 02:40:53 +02:00
|
|
|
description = "Flash-optimized, in-memory, NoSQL database";
|
2021-07-31 19:01:50 +02:00
|
|
|
homepage = "https://aerospike.com/";
|
2018-07-16 02:40:53 +02:00
|
|
|
license = licenses.agpl3;
|
2018-12-09 20:46:13 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2018-07-16 10:08:55 +02:00
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2018-07-16 02:40:53 +02:00
|
|
|
};
|
|
|
|
}
|