2024-01-27 22:33:51 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, 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";
|
2024-05-10 04:21:33 +02:00
|
|
|
version = "7.0.0.9";
|
2018-07-16 02:40:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aerospike";
|
|
|
|
repo = "aerospike-server";
|
|
|
|
rev = version;
|
2024-05-10 04:21:33 +02:00
|
|
|
hash = "sha256-3ZVSaq76oG8NEe2SNyVGg+iDZ9RXyjFEIsgoemmuaPQ=";
|
2018-07-16 02:40:53 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-01-27 22:33:51 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake cmake libtool ];
|
2018-07-16 02:40:53 +02:00
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
|
2024-01-27 22:33:51 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2018-07-16 02:40:53 +02:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs build/gen_version
|
|
|
|
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-01-27 22:33:51 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp target/Linux-x86_64/bin/asd $out/bin/asd
|
2018-07-16 02:40:53 +02:00
|
|
|
'';
|
|
|
|
|
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";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "asd";
|
2021-07-31 19:01:50 +02:00
|
|
|
homepage = "https://aerospike.com/";
|
2024-03-19 13:26:06 +01:00
|
|
|
license = licenses.agpl3Only;
|
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
|
|
|
};
|
|
|
|
}
|