I’m trying to build a package for a program which uses Qt.
Building succeeds, but starting fails with:
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Starting it with QT_DEBUG_PLUGINS=1 additionally shows a GLIBC_2.27 not found-message:
Cannot load library /nix/store/10l6xyzr053c1zh30g2j328wyyh6anry-qtbase-5.10.1-bin/lib/qt-5.10/plugins/platforms/libqxcb.so:
(/nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libc.so.6:
version `GLIBC_2.27' not found (required by /nix/store/izpra5d6slpacbq8mgx5vanz5axv9fny-systemd-238-lib/lib/libsystemd.so.0))
Although this seems to be a common problem, I have not found any working solution.
So, what do I have to change in the package to solve this?