2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, zlib
|
|
|
|
, lz4
|
|
|
|
, bzip2
|
|
|
|
, zstd
|
|
|
|
, spdlog_0
|
|
|
|
, tbb
|
|
|
|
, openssl
|
|
|
|
, boost
|
|
|
|
, libpqxx
|
|
|
|
, clang-tools
|
|
|
|
, catch2
|
2022-01-19 23:45:15 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtest
|
|
|
|
, doxygen
|
2020-09-25 04:45:31 +00:00
|
|
|
, fixDarwinDylibNames
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tiledb";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TileDB-Inc";
|
|
|
|
repo = "TileDB";
|
|
|
|
rev = version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "sha256-3Z5+QUzo2f24q11j6s8KX2vHLFkipFvGk2VFComWW/o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# (bundled) blosc headers have a warning on some archs that it will be using
|
|
|
|
# unaccelerated routines.
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DTILEDB_WERROR=0"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
clang-tools
|
|
|
|
cmake
|
2022-01-19 23:45:15 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
doxygen
|
2020-11-12 09:05:59 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
gtest
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
catch2
|
|
|
|
zlib
|
|
|
|
lz4
|
|
|
|
bzip2
|
|
|
|
zstd
|
|
|
|
spdlog_0
|
|
|
|
tbb
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libpqxx
|
2020-11-12 09:05:59 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# emulate the process of pulling catch down
|
|
|
|
postPatch = ''
|
|
|
|
mkdir -p build/externals/src/ep_catch
|
|
|
|
ln -sf ${catch2}/include/catch2 build/externals/src/ep_catch/single_include
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # 9 failing tests due to what seems an overflow
|
|
|
|
|
|
|
|
installTargets = [ "install-tiledb" "doc" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -add_rpath ${tbb}/lib $out/lib/libtiledb.dylib
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "TileDB allows you to manage the massive dense and sparse multi-dimensional array data";
|
|
|
|
homepage = "https://github.com/TileDB-Inc/TileDB";
|
|
|
|
license = licenses.mit;
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ rakesh4g ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|