nixpkgs/pkgs/servers/nosql/aerospike/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1,011 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, libtool, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "aerospike-server";
2024-05-10 04:21:33 +02:00
version = "7.0.0.9";
src = fetchFromGitHub {
owner = "aerospike";
repo = "aerospike-server";
rev = version;
2024-05-10 04:21:33 +02:00
hash = "sha256-3ZVSaq76oG8NEe2SNyVGg+iDZ9RXyjFEIsgoemmuaPQ=";
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";
mainProgram = "asd";
homepage = "https://aerospike.com/";
2024-03-19 13:26:06 +01:00
license = licenses.agpl3Only;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ kalbasit ];
};
}