aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/tiledb/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/tiledb/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/tiledb/default.nix19
1 files changed, 15 insertions, 4 deletions
diff --git a/nixpkgs/pkgs/development/libraries/tiledb/default.nix b/nixpkgs/pkgs/development/libraries/tiledb/default.nix
index 3ebfd4ea919..2726ed7f237 100644
--- a/nixpkgs/pkgs/development/libraries/tiledb/default.nix
+++ b/nixpkgs/pkgs/development/libraries/tiledb/default.nix
@@ -16,19 +16,26 @@
, python
, gtest
, doxygen
+, fixDarwinDylibNames
}:
stdenv.mkDerivation rec {
pname = "tiledb";
- version = "1.7.7";
+ version = "2.0.7";
src = fetchFromGitHub {
owner = "TileDB-Inc";
repo = "TileDB";
rev = version;
- sha256 = "0vpbyxi8k29c7sjpk86y5w3yyp5fn62q5xvbw061wgp7vrprf8bm";
+ sha256 = "00g8ibsbnl4wjfx3qg4qy6s7z6dsj898j0yqfhw1gjr1pb5dsapb";
};
+ # (bundled) blosc headers have a warning on some archs that it will be using
+ # unaccelerated routines.
+ cmakeFlags = [
+ "-DTILEDB_WERROR=0"
+ ];
+
nativeBuildInputs = [
clang-tools
cmake
@@ -53,7 +60,7 @@ stdenv.mkDerivation rec {
openssl
boost
libpqxx
- ];
+ ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
# emulate the process of pulling catch down
postPatch = ''
@@ -65,11 +72,15 @@ stdenv.mkDerivation rec {
installTargets = [ "install-tiledb" "doc" ];
+ postInstall = lib.optionalString stdenv.isDarwin ''
+ install_name_tool -add_rpath ${tbb}/lib $out/lib/libtiledb.dylib
+ '';
+
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;
- platforms = [ "x86_64-linux"];
+ platforms = platforms.unix;
maintainers = with maintainers; [ rakesh4g ];
};