lol

tiledb: enable serialization

Build headers and libraries required for serialization support. Required
for TileDB Python bindings.

+18 -1
+18 -1
pkgs/by-name/ti/tiledb/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 zlib, 7 lz4, ··· 22 libpng, 23 file, 24 runCommand, 25 useAVX2 ? stdenv.hostPlatform.avx2Support, 26 }: 27 ··· 45 hash = "sha256-Cs3Lr8I/Mu02x78d7IySG0XX4u/VAjBs4p4b00XDT5k="; 46 }; 47 48 - patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./generate_embedded_data_header.patch ]; 49 50 # libcxx (as of llvm-19) does not yet support `stop_token` and `jthread` 51 # without the -fexperimental-library flag. Tiledb adds its own ··· 62 cmakeFlags = [ 63 "-DTILEDB_WEBP=OFF" 64 "-DTILEDB_WERROR=OFF" 65 # https://github.com/NixOS/nixpkgs/issues/144170 66 "-DCMAKE_INSTALL_INCLUDEDIR=include" 67 "-DCMAKE_INSTALL_LIBDIR=lib" ··· 74 cmake 75 python3 76 doxygen 77 ] 78 ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 79
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchpatch, 6 cmake, 7 zlib, 8 lz4, ··· 23 libpng, 24 file, 25 runCommand, 26 + curl, 27 + capnproto, 28 useAVX2 ? stdenv.hostPlatform.avx2Support, 29 }: 30 ··· 48 hash = "sha256-Cs3Lr8I/Mu02x78d7IySG0XX4u/VAjBs4p4b00XDT5k="; 49 }; 50 51 + patches = [ 52 + # capnproto was updated to 1.2 in Nixpkgs, bring TileDB codebase up to speed 53 + # patch only affects serialization related code, extracted from https://github.com/TileDB-Inc/TileDB/pull/5616 54 + (fetchpatch { 55 + url = "https://github.com/TileDB-Inc/TileDB/pull/5616.patch"; 56 + relative = "tiledb/sm/serialization"; 57 + extraPrefix = "tiledb/sm/serialization/"; 58 + hash = "sha256-5z/eJEHl+cnWRf1sMULodJyhmNh5KinDLlL1paMNiy4="; 59 + }) 60 + ] 61 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./generate_embedded_data_header.patch ]; 62 63 # libcxx (as of llvm-19) does not yet support `stop_token` and `jthread` 64 # without the -fexperimental-library flag. Tiledb adds its own ··· 75 cmakeFlags = [ 76 "-DTILEDB_WEBP=OFF" 77 "-DTILEDB_WERROR=OFF" 78 + "-DTILEDB_SERIALIZATION=ON" 79 # https://github.com/NixOS/nixpkgs/issues/144170 80 "-DCMAKE_INSTALL_INCLUDEDIR=include" 81 "-DCMAKE_INSTALL_LIBDIR=lib" ··· 88 cmake 89 python3 90 doxygen 91 + # Required for serialization 92 + curl 93 + capnproto 94 ] 95 ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 96