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:
parent
75d8b5354d
commit
624a72737c
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ in
|
|||
|
||||
environment = {
|
||||
HOME = homeDir;
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath config.programs.nix-ld.libraries;
|
||||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ in
|
|||
|
||||
environment = {
|
||||
HOME = homeDir;
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath config.programs.nix-ld.libraries;
|
||||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue