nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 zlib,
7 openssl,
8 c-ares,
9 readline,
10 icu,
11 git,
12 gbenchmark,
13 nghttp2,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "tarantool";
18 version = "2.10.4";
19
20 src = fetchFromGitHub {
21 owner = "tarantool";
22 repo = "tarantool";
23 rev = version;
24 hash = "sha256-yCRU5IxC6gNS+O2KYtKWjFk35EHkBnnzWy5UnyuB9f4=";
25 fetchSubmodules = true;
26 };
27
28 buildInputs = [
29 nghttp2
30 git
31 readline
32 icu
33 zlib
34 openssl
35 c-ares
36 ];
37
38 nativeCheckInputs = [ gbenchmark ];
39
40 nativeBuildInputs = [ cmake ];
41
42 cmakeBuildType = "RelWithDebInfo";
43
44 cmakeFlags = [
45 "-DENABLE_DIST=ON"
46 "-DTARANTOOL_VERSION=${version}.builtByNix" # expects the commit hash as well
47 ];
48
49 meta = with lib; {
50 description = "In-memory computing platform consisting of a database and an application server";
51 homepage = "https://www.tarantool.io/";
52 license = licenses.bsd2;
53 mainProgram = "tarantool";
54 maintainers = with maintainers; [ dit7ya ];
55 };
56}