1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/servers/nosql/aerospike/default.nix
Uli Baum 8e5dbacd85 aerospike: fix ofborg eval
platforms = [ "x86_64-linux" ] broke ofborg eval of nixos manual
because the aerospike module references this package.
Fixed for now by setting platforms to platforms.linux,
even if aarch64 isn't really supported.
2018-07-16 08:45:31 +02:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, openssl, zlib }:
stdenv.mkDerivation rec {
name = "aerospike-server-${version}";
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}'
'';
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 stdenv.lib; {
description = "Flash-optimized, in-memory, NoSQL database";
homepage = http://aerospike.com/;
license = licenses.agpl3;
#platforms = [ "x86_64-linux" ]; # breaks eval of nixos manual for aarch64
platforms = platforms.linux;
maintainer = with maintainers; [ kalbasit ];
};
}