2024-02-07 01:22:34 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, libtool, openssl, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aerospike-server";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "7.0.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aerospike";
|
|
|
|
repo = "aerospike-server";
|
|
|
|
rev = version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-qyVfoOnWIUY1np58HtpVrKNsgiXlvdgffyMGjk+G5qI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake cmake libtool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs build/gen_version
|
|
|
|
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-02-07 01:22:34 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp target/Linux-x86_64/bin/asd $out/bin/asd
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|