mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
c7fc01cd77
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, openssl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aerospike-server";
|
|
version = "4.2.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aerospike";
|
|
repo = "aerospike-server";
|
|
rev = version;
|
|
sha256 = "1vqi3xir4l57v62q1ns3713vajxffs6crss8fpvbcs57p7ygx3s7";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
preBuild = ''
|
|
patchShebangs build/gen_version
|
|
substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
|
|
|
|
# drop blanket -Werror
|
|
substituteInPlace make_in/Makefile.in --replace '-Werror' ""
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/udf
|
|
cp target/Linux-x86_64/bin/asd $out/bin/asd
|
|
cp -dpR modules/lua-core/src $out/share/udf/lua
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|