fix(opencode): narrow LD_LIBRARY_PATH to libstdc++ only

The full nix-ld library list shadowed nix's own curl, breaking
libnixstore.so with "CURL_OPENSSL_4 not found". The prebuilt node
watcher binding only needs libstdc++/libgcc_s, so use stdenv.cc.cc.lib
and let nix-built tools resolve their own deps via RUNPATH.
This commit is contained in:
Harald Hoyer 2026-05-04 08:58:21 +02:00
parent 75d8b5354d
commit 624a72737c
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ in
environment = { environment = {
HOME = homeDir; HOME = homeDir;
LD_LIBRARY_PATH = lib.makeLibraryPath config.programs.nix-ld.libraries; LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
}; };
serviceConfig = { serviceConfig = {

View file

@ -35,7 +35,7 @@ in
environment = { environment = {
HOME = homeDir; HOME = homeDir;
LD_LIBRARY_PATH = lib.makeLibraryPath config.programs.nix-ld.libraries; LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
}; };
serviceConfig = { serviceConfig = {