I’m trying to install dynamically linked apps e. g. Softmaker Office 2024.
I followed https://github.com/Mic92/nix-ld and added
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
# Add any missing dynamic libraries for unpackaged
# programs here, NOT in environment.systemPackages
libX11
libXmu
libXext
....
];
I got the list from:
ldd ./presentations
linux-vdso.so.1 (0x00007ffea43f7000)
libdl.so.2 => /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libdl.so.2 (0x00007f8c0ddea000)
libX11.so.6 => not found
libXmu.so.6 => not found
libXext.so.6 => not found
libm.so.6 => /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libm.so.6 (0x00007f8c0dd07000)
libXrender.so.1 => not found
libXrandr.so.2 => not found
libcurl.so.4 => not found
libstdc++.so.6 => not found
libpthread.so.0 => /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libpthread.so.0 (0x00007f8c0dd00000)
libGL.so.1 => not found
libgobject-2.0.so.0 => not found
libgstreamer-1.0.so.0 => not found
libgstaudio-1.0.so.0 => not found
libgstvideo-1.0.so.0 => not found
libgstapp-1.0.so.0 => not found
libgcc_s.so.1 => /nix/store/1q9vc0lq7qjlfjz47mfmlzdf86c543jy-xgcc-13.2.0-libgcc/lib/libgcc_s.so.1 (0x00007f8c0dcd7000)
libc.so.6 => /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6 (0x00007f8c0daea000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib64/ld-linux-x86-64.so.2 (0x00007f8c0ddf1000)
The switch fails though: error: undefined variable ‘libX11’
What am I doing wrong?