fix: add LD_LIBRARY_PATH for bun-installed native addons on NixOS
Merged
SH
7mo ago+17+17+01234567890123456789-0-0-0123456789
Summary
- Add
LD_LIBRARY_PATHwithalsa-lib,glib,libsecret,stdenv.cc.cc.lib, andzlibto fish, bash, and zsh shell configs (Linux only) - Install corresponding packages in
home-manager/packages/default.nix - Fixes
omp(oh-my-pi) crashing withlibz.so.1: cannot open shared object fileand similar errors for sharp, keytar, copilot, node-llama-cpp, etc.
Test plan
- Rebuild NixOS / home-manager switch
- Run
omp— should no longer error aboutlibz.so.1 - Verify
lddon bun native addons shows no missing libs
🤖 Generated with Claude Code
Summary by cubic
Configure LD_LIBRARY_PATH for bun-installed native addons on NixOS and install system libs to stop load failures. Fixes errors like "libz.so.1: cannot open shared object file" in @oh-my-pi/pi-natives, sharp, keytar, node-llama-cpp, and others.
- Bug Fixes
- Export
LD_LIBRARY_PATHon Linux in bash, zsh, and fish to include libs fromalsa-lib,glib,libsecret,stdenv.cc.cc.lib, andzlib. - Add the same packages to Home Manager Linux packages so the libraries are present.
- Append
alsa-libonly on Linux usinglib.optionalsto avoid aarch64-darwin evaluation errors.
- Export