Andreas Enge <andr...@enge.fr> skribis: > And can I use the same code for libraries using other libraries of the same > package, by changing "bin" to "lib" in the code snippet? > > For instance, one has > $ ldd /nix/store/bplvsx34rzpn85vly086l0jhmhil9ncg-icu4c-50.1.1/lib/libicuuc.so > ... > libicudata.so.50 => not found > ... > > where the unfound library resides in the same directory.
Yes, in this case the RUNPATH of libicuuc.so needs to be augmented to contain $out/lib, where libicudata.so lives. Ludo’.