mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
39 lines
1011 B
Nix
39 lines
1011 B
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake, cmake, libtool, openssl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aerospike-server";
|
|
version = "7.0.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aerospike";
|
|
repo = "aerospike-server";
|
|
rev = version;
|
|
hash = "sha256-Tqg4SYMLw4K3nIlL4h0lvXdQMnG6tAOHNuqzgswl0uk=";
|
|
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 ];
|
|
};
|
|
}
|