tarantool: 2.10.4 -> 3.5.0 (#441797)

This commit is contained in:
Yaya
2025-10-15 08:22:08 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib, lib,
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
autoreconfHook,
cmake, cmake,
zlib, zlib,
openssl, openssl,
@@ -11,20 +12,29 @@
git, git,
gbenchmark, gbenchmark,
nghttp2, nghttp2,
nix-update-script,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "tarantool"; pname = "tarantool";
version = "2.10.4"; version = "3.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tarantool"; owner = "tarantool";
repo = "tarantool"; repo = "tarantool";
tag = version; tag = finalAttrs.version;
hash = "sha256-yCRU5IxC6gNS+O2KYtKWjFk35EHkBnnzWy5UnyuB9f4="; hash = "sha256-NU+0R07Qrnew7+HeeJu6QnGfktEXFRxSZFwl48vjGZE=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
postPatch = ''
cat <<'EOF' > third_party/luajit/test/cmake/GetLinuxDistro.cmake
macro(GetLinuxDistro output)
set(''${output} linux)
endmacro()
EOF
'';
buildInputs = [ buildInputs = [
nghttp2 nghttp2
git git
@@ -37,20 +47,33 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [ gbenchmark ]; nativeCheckInputs = [ gbenchmark ];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [
autoreconfHook
cmake
];
preAutoreconf = ''
pushd third_party/libunwind
'';
postAutoreconf = ''
popd
'';
cmakeBuildType = "RelWithDebInfo"; cmakeBuildType = "RelWithDebInfo";
cmakeFlags = [ cmakeFlags = [
"-DENABLE_DIST=ON" "-DENABLE_DIST=ON"
"-DTARANTOOL_VERSION=${version}.builtByNix" # expects the commit hash as well "-DTARANTOOL_VERSION=${finalAttrs.version}.builtByNix" # expects the commit hash as well
]; ];
meta = with lib; { passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; };
meta = {
description = "In-memory computing platform consisting of a database and an application server"; description = "In-memory computing platform consisting of a database and an application server";
homepage = "https://www.tarantool.io/"; homepage = "https://www.tarantool.io/";
license = licenses.bsd2; license = lib.licenses.bsd2;
mainProgram = "tarantool"; mainProgram = "tarantool";
maintainers = with maintainers; [ dit7ya ]; maintainers = with lib.maintainers; [ dit7ya ];
}; };
} })