Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Commit c392f9f

Browse files
committed
chore: add database native libraries to Nix dev shell
Added SQLite and DuckDB native libraries to the development shell to support database clients (@db/sqlite, @duckdb/node-api). These clients use Deno FFI and require native libraries at runtime. The LD_LIBRARY_PATH configuration ensures FFI can locate the libraries. Also updates nixpkgs to latest version via flake.lock refresh.
1 parent aeed117 commit c392f9f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,19 @@
5555
devShells.default = pkgs.mkShell {
5656
packages = with pkgs; [
5757
deno
58+
# Native library dependencies for database clients
59+
stdenv.cc.cc.lib # C++ standard library (required by most native bindings)
60+
sqlite # SQLite library (for @db/sqlite via FFI)
61+
duckdb # DuckDB library (for @duckdb/node-api)
5862
];
5963

6064
shellHook = ''
65+
# Add native library paths for database clients
66+
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [
67+
pkgs.stdenv.cc.cc.lib
68+
pkgs.sqlite
69+
pkgs.duckdb
70+
]}:$LD_LIBRARY_PATH"
6171
echo "Entering Probitas CLI development environment"
6272
'';
6373
};

0 commit comments

Comments
 (0)