nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 cmake,
8 libtool,
9 openssl,
10 zlib,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "aerospike-server";
15 version = "8.0.0.9";
16
17 src = fetchFromGitHub {
18 owner = "aerospike";
19 repo = "aerospike-server";
20 rev = version;
21 hash = "sha256-3cXj+U8dtPk92fjUS+EDxuE2HklCIWhChjiLfJh5vHk=";
22 fetchSubmodules = true;
23 };
24
25 nativeBuildInputs = [
26 autoconf
27 automake
28 cmake
29 libtool
30 ];
31 buildInputs = [
32 openssl
33 zlib
34 ];
35
36 dontUseCmakeConfigure = true;
37
38 preBuild = ''
39 patchShebangs build/gen_version
40 substituteInPlace build/gen_version --replace 'git describe' 'echo ${version}'
41 '';
42
43 installPhase = ''
44 mkdir -p $out/bin
45 cp target/Linux-x86_64/bin/asd $out/bin/asd
46 '';
47
48 meta = {
49 description = "Flash-optimized, in-memory, NoSQL database";
50 mainProgram = "asd";
51 homepage = "https://aerospike.com/";
52 license = lib.licenses.agpl3Only;
53 platforms = [ "x86_64-linux" ];
54 maintainers = with lib.maintainers; [ kalbasit ];
55 };
56}