depot/third_party/nixpkgs/pkgs/servers/nosql/aerospike/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

38 lines
1,011 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, libtool, openssl, zlib }:
stdenv.mkDerivation rec {
pname = "aerospike-server";
version = "7.2.0.1";
src = fetchFromGitHub {
owner = "aerospike";
repo = "aerospike-server";
rev = version;
hash = "sha256-PFLdESQ3eyVTu8FJSI/9FbjpA+721G+ok5/UE/5u/2E=";
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/";
license = licenses.agpl3Only;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ kalbasit ];
};
}