I want to run Netron. It’s distributed as AppImage. So I tried to use appimage-run to run it:
❯ appimage-run Netron-4.8.1.AppImage
Netron-4.8.1.AppImage installed in /home/thiago/.cache/appimage-run/57c7da4d85636014e68318f0f00c401350a2c50d4cedbb9f4a03b3605206b17f
/home/thiago/.cache/appimage-run/57c7da4d85636014e68318f0f00c401350a2c50d4cedbb9f4a03b3605206b17f/netron: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
It seems to that xorg.libxshmfence is not included in appimage-run environment. Is it possible to add xorg.libxshmfence or other package inside of appimage-run environment without write a new derivation?
The short answer is: No it is no possible without making a new derivation
The longer answer is that since making new derivations that slightly alter or fix existing derivations is so common derivations usually have extension points that make doing this slightly less painful.
As an example if you are using NixOS you can add your missing library to the system installed appimage-run with this snippet: