nixpkgs/pkgs/servers/nosql/aerospike/default.nix
2024-03-19 03:18:43 +00:00

38 lines
982 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, libtool, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "aerospike-server";
version = "7.0.0.6";
src = fetchFromGitHub {
owner = "aerospike";
repo = "aerospike-server";
rev = version;
hash = "sha256-2Gz0Z8nEC3NX2Skg+4MzLrXYVqL30QwMnvu4dkbJ6+g=";
fetchSubmodules = true;
};
nativeBuildInputs = [ autoconf automake cmake libtool ];
buildInputs = [ openssl zlib ];
dontUseCmakeConfigure = true;
preBuild = ''
patchShebangs build/gen_version
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
'';
installPhase = ''
mkdir -p $out/bin
cp target/Linux-x86_64/bin/asd $out/bin/asd
'';
meta = with lib; {
description = "Flash-optimized, in-memory, NoSQL database";
homepage = "https://aerospike.com/";
license = licenses.agpl3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ kalbasit ];
};
}