2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, openssl, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aerospike-server";
|
|
|
|
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-04 12:37:57 +00:00
|
|
|
|
|
|
|
# drop blanket -Werror
|
|
|
|
substituteInPlace make_in/Makefile.in --replace '-Werror' ""
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Flash-optimized, in-memory, NoSQL database";
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://aerospike.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
2023-03-24 00:07:29 +00:00
|
|
|
knownVulnerabilities = [ "CVE-2020-13151" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|