text:
LD_LIBRARY_PATH not set correctly,causing plasmasession to not start

Describe the bug
On latest nixos-unstable, the plasma session could not start without the following workaround:
environment.sessionVariables.LD_LIBRARY_PATH="/run/current-systyem/sw/lib";

Notify maintainers
@NixOS/qt-kde
Metadata

system: "x86_64-linux"
host os: Linux 5.10.27, NixOS, 21.05.20210405.3d1a771 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20210326_dd77f71
channels(root): ""
nixpkgs: /nix/store/sz015sc0y6adpacafc4zs35wf8364c6a-source

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Can you please describe the problem in detail? What does it mean that plasmasession does not start? Do you see a blank screen, or you are returned to the login screen, or your computer reboots... etc.? Do you see any messages in the system log (journalctl)?
LD_LIBRARY_PATH should not be set like that on a running system, so knowing your workaround does not help me diagnose the problem.

journalctl --user
…
apr 07 21:10:50 nixos systemd[1934]: plasma-kactivitymanagerd.service: Succeeded.
apr 07 21:10:50 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=exited, status=1/FAILURE
apr 07 21:10:50 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'exit-code'.
apr 07 21:10:50 nixos xsession[2049]: The X11 connection broke (error 1). Did the X11 server die?
apr 07 21:10:50 nixos xsession[1988]: Application::crashHandler() called with signal 11; recent crashes: 1
apr 07 21:10:50 nixos xsession[1988]: malloc_consolidate(): unaligned fastbin chunk detected
apr 07 21:10:50 nixos xsession[1988]: KCrash: Application 'kwin_x11' crashing...
apr 07 21:10:50 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 1.
apr 07 21:10:50 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:10:50 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:10:50 nixos obexd[2186]: OBEX daemon 5.56
apr 07 21:10:50 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Successfully activated service 'org.bluez.obex'
apr 07 21:10:50 nixos systemd[1934]: Started Bluetooth OBEX service.
apr 07 21:10:50 nixos obexd[2186]: stat(/home/paki/.cache/obexd): No such file or directory (2)
apr 07 21:10:50 nixos obexd[2186]: Unable to setup root folder /home/paki/.cache/obexd
apr 07 21:10:50 nixos systemd[1934]: obex.service: Main process exited, code=exited, status=1/FAILURE
apr 07 21:10:50 nixos systemd[1934]: obex.service: Failed with result 'exit-code'.
apr 07 21:10:51 nixos org.kde.kwalletd5[2192]: qt.qpa.xcb: could not connect to display :0
apr 07 21:10:51 nixos org.kde.kwalletd5[2192]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:10:51 nixos org.kde.kwalletd5[2192]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:10:51 nixos org.kde.kwalletd5[2192]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:10:51 nixos kglobalaccel5[2201]: qt.qpa.xcb: could not connect to display :0
apr 07 21:10:51 nixos kglobalaccel5[2201]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:10:51 nixos kglobalaccel5[2201]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:10:51 nixos kglobalaccel5[2201]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:10:52 nixos systemd-coredump[2225]: [🡕] Process 2192 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:10:52 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:10:52 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:11:09 nixos xsession[2063]: Fallimento: Inizializzazione del modulo non riuscita
apr 07 21:10:52 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:11:09 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:11:09 nixos org.kde.kwalletd5[2243]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:09 nixos org.kde.kwalletd5[2243]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:09 nixos org.kde.kwalletd5[2243]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:09 nixos org.kde.kwalletd5[2243]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:09 nixos kglobalaccel5[2262]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:09 nixos kglobalaccel5[2262]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:09 nixos kglobalaccel5[2262]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:09 nixos kglobalaccel5[2262]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:10:53 nixos pulseaudio[2075]: Module "module-suspend-on-idle" should be loaded once at most. Refusing to load.
apr 07 21:10:53 nixos systemd[1934]: Started Sound Service.
apr 07 21:11:09 nixos kglobalaccel5[2269]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:09 nixos kglobalaccel5[2269]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:09 nixos kglobalaccel5[2269]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:09 nixos kglobalaccel5[2269]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:10:54 nixos systemd-coredump[2226]: [🡕] Process 2201 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:10 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:10:54 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:10 nixos org.kde.kwalletd5[2276]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:10 nixos org.kde.kwalletd5[2276]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:10 nixos org.kde.kwalletd5[2276]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:10 nixos org.kde.kwalletd5[2276]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:10:54 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:07 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:10:54 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:07 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:10:54 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 2.
apr 07 21:11:10 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:10:54 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:10 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:10:54 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:10:54 nixos pulseaudio[2075]: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
apr 07 21:10:55 nixos pulseaudio[2075]: XOpenDisplay() failed
apr 07 21:10:55 nixos pulseaudio[2075]: Failed to load module "module-x11-publish" (argument: "display=:0 xauthority=/home/paki/.Xauthority"): initialization failed.
apr 07 21:10:59 nixos systemd[1934]: plasma-kglobalaccel.service: start operation timed out. Terminating.
apr 07 21:11:05 nixos systemd[1934]: plasma-kglobalaccel.service: State 'stop-sigterm' timed out. Killing.
apr 07 21:11:05 nixos systemd[1934]: plasma-kglobalaccel.service: Killing process 2262 (.kglobalaccel5-) with signal SIGKILL.
apr 07 21:11:05 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=killed, status=9/KILL
apr 07 21:11:05 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'timeout'.
apr 07 21:11:05 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:05 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 3.
apr 07 21:11:05 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:05 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:07 nixos systemd-coredump[2258]: [🡕] Process 2243 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:09 nixos systemd-coredump[2264]: [🡕] Process 2262 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:10 nixos org.kde.kwalletd5[2295]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:10 nixos org.kde.kwalletd5[2295]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:10 nixos org.kde.kwalletd5[2295]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:10 nixos org.kde.kwalletd5[2295]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:11 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:11:11 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:11:11 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:11:11 nixos kglobalaccel5[2301]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:11 nixos kglobalaccel5[2301]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:11 nixos kglobalaccel5[2301]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:11 nixos kglobalaccel5[2301]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:10 nixos systemd-coredump[2278]: [🡕] Process 2276 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:10 nixos systemd-coredump[2200]: [🡕] Process 1988 (kwin_x11) of user 1001 dumped core.
apr 07 21:11:12 nixos org.kde.kwalletd5[2321]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:12 nixos org.kde.kwalletd5[2321]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:12 nixos org.kde.kwalletd5[2321]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:12 nixos org.kde.kwalletd5[2321]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:10 nixos systemd-coredump[2271]: [🡕] Process 2269 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:10 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:10 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:10 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:12 nixos kglobalaccel5[2332]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:12 nixos kglobalaccel5[2332]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:12 nixos kglobalaccel5[2332]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:12 nixos kglobalaccel5[2332]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:10 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 4.
apr 07 21:11:10 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:10 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:12 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:11:12 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:11:12 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:11:11 nixos systemd-coredump[2302]: [🡕] Process 2295 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:13 nixos org.kde.kwalletd5[2338]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:13 nixos org.kde.kwalletd5[2338]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:13 nixos org.kde.kwalletd5[2338]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:13 nixos org.kde.kwalletd5[2338]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:14 nixos xsession[1983]: Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kwalletd5 received signal 6")
apr 07 21:11:13 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:11:12 nixos systemd-coredump[2309]: [🡕] Process 2301 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:13 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating service name='org.kde.kwalletd5' requested by ':1.7' (uid=1001 pid=1983 comm="/run/current-system/sw/bin/kded5 ")
apr 07 21:11:14 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.kwalletd5' failed: Process org.kde.kwalletd5 received signal 6
apr 07 21:11:15 nixos xsession[1983]: plasma-nm: Error opening kwallet.
apr 07 21:11:12 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:15 nixos kglobalaccel5[2352]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:15 nixos kglobalaccel5[2352]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:15 nixos kglobalaccel5[2352]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:15 nixos kglobalaccel5[2352]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:15 nixos org.kde.kwalletd5[2351]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:15 nixos org.kde.kwalletd5[2351]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:15 nixos org.kde.kwalletd5[2351]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:15 nixos org.kde.kwalletd5[2351]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:12 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:12 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:12 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 5.
apr 07 21:11:12 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:12 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:12 nixos systemd-coredump[2326]: [🡕] Process 2321 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:15 nixos kglobalaccel5[2372]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:15 nixos kglobalaccel5[2372]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:15 nixos kglobalaccel5[2372]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:15 nixos kglobalaccel5[2372]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:13 nixos systemd-coredump[2341]: [🡕] Process 2332 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:13 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:16 nixos kglobalaccel5[2380]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:16 nixos kglobalaccel5[2380]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:16 nixos kglobalaccel5[2380]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:16 nixos kglobalaccel5[2380]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:13 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:13 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:13 nixos systemd-coredump[2343]: [🡕] Process 2338 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:17 nixos pulseaudio[2075]: Invalid MIT-MAGIC-COOKIE-1 key
apr 07 21:11:13 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 6.
apr 07 21:11:17 nixos kglobalaccel5[2388]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:17 nixos kglobalaccel5[2388]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:17 nixos kglobalaccel5[2388]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:17 nixos kglobalaccel5[2388]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:13 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:13 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:14 nixos systemd-coredump[2354]: [🡕] Process 2351 (.kwalletd5-wrap) of user 1001 dumped core.
apr 07 21:11:15 nixos systemd-coredump[2356]: [🡕] Process 2352 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:19 nixos kglobalaccel5[2398]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:19 nixos kglobalaccel5[2398]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:19 nixos kglobalaccel5[2398]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:19 nixos kglobalaccel5[2398]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:15 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:19 nixos kglobalaccel5[2404]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:19 nixos kglobalaccel5[2404]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:19 nixos kglobalaccel5[2404]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:19 nixos kglobalaccel5[2404]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:15 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:15 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:15 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 7.
apr 07 21:11:15 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:15 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:15 nixos systemd-coredump[2374]: [🡕] Process 2372 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:15 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:15 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:15 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:16 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 8.
apr 07 21:11:16 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:16 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:16 nixos systemd-coredump[2382]: [🡕] Process 2380 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:16 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:16 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:20 nixos kglobalaccel5[2416]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:20 nixos kglobalaccel5[2416]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:20 nixos kglobalaccel5[2416]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:20 nixos kglobalaccel5[2416]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:16 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:17 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 9.
apr 07 21:11:17 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:17 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:17 nixos systemd[1934]: pulseaudio.service: Succeeded.
apr 07 21:11:17 nixos systemd-coredump[2390]: [🡕] Process 2388 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:17 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:17 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:17 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:18 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 10.
apr 07 21:11:18 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:18 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:18 nixos systemd-coredump[2400]: [🡕] Process 2398 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:18 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:18 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:18 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:19 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 11.
apr 07 21:11:19 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:19 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:19 nixos systemd-coredump[2408]: [🡕] Process 2404 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:20 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:23 nixos xsession[1983]: Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyThe X11 connection broke: I/O error (code 1)
apr 07 21:11:23 nixos xsession[1983]: X connection to :0 broken (explicit kill or server shutdown).
apr 07 21:11:20 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:20 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:20 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 12.
apr 07 21:11:20 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:20 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:21 nixos systemd-coredump[2418]: [🡕] Process 2416 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:21 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:21 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:21 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:21 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 13.
apr 07 21:11:21 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:21 nixos systemd[1934]: plasma-kglobalaccel.service: Start request repeated too quickly.
apr 07 21:11:21 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:21 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:28 nixos systemd-coredump[2432]: [🡕] Process 2102 (.ibus-daemon-wr) of user 1001 dumped core.
apr 07 21:11:29 nixos xsession[2047]: kf.plasma.quick: Applet preload policy set to 1
apr 07 21:11:30 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating via systemd: service name='org.kde.kglobalaccel' unit='plasma-kglobalaccel.service' requested by ':1.19' (uid=1001 pid=2047 comm="/nix/store/26h6vx2m25z23j51cgksi2m3szzdi7i8-plasma")
apr 07 21:11:30 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:30 nixos kglobalaccel5[2439]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:30 nixos kglobalaccel5[2439]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:30 nixos kglobalaccel5[2439]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:30 nixos kglobalaccel5[2439]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:30 nixos systemd-coredump[2441]: [🡕] Process 2439 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:30 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:30 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:31 nixos kglobalaccel5[2447]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:31 nixos kglobalaccel5[2447]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:31 nixos kglobalaccel5[2447]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:31 nixos kglobalaccel5[2447]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:30 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:31 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 1.
apr 07 21:11:31 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:31 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:31 nixos systemd-coredump[2449]: [🡕] Process 2447 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:31 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:31 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:32 nixos kglobalaccel5[2455]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:32 nixos kglobalaccel5[2455]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:32 nixos kglobalaccel5[2455]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:32 nixos kglobalaccel5[2455]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:31 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:31 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 2.
apr 07 21:11:31 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:31 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:32 nixos xsession[2036]: QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.27'
apr 07 21:11:32 nixos systemd-coredump[2457]: [🡕] Process 2455 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:32 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:32 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:33 nixos kglobalaccel5[2463]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:33 nixos kglobalaccel5[2463]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:33 nixos kglobalaccel5[2463]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:33 nixos kglobalaccel5[2463]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:32 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:32 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 3.
apr 07 21:11:32 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:32 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:33 nixos systemd-coredump[2465]: [🡕] Process 2463 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:33 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:33 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:34 nixos kglobalaccel5[2471]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
apr 07 21:11:34 nixos kglobalaccel5[2471]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
apr 07 21:11:34 nixos kglobalaccel5[2471]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
apr 07 21:11:34 nixos kglobalaccel5[2471]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
apr 07 21:11:33 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:33 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 4.
apr 07 21:11:33 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:33 nixos systemd[1934]: Starting KDE Global Shortcuts Server...
apr 07 21:11:34 nixos systemd-coredump[2473]: [🡕] Process 2471 (.kglobalaccel5-) of user 1001 dumped core.
apr 07 21:11:34 nixos systemd[1934]: plasma-kglobalaccel.service: Main process exited, code=dumped, status=6/ABRT
apr 07 21:11:34 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:34 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:34 nixos systemd[1934]: plasma-kglobalaccel.service: Scheduled restart job, restart counter is at 5.
apr 07 21:11:34 nixos systemd[1934]: Stopped KDE Global Shortcuts Server.
apr 07 21:11:34 nixos systemd[1934]: plasma-kglobalaccel.service: Start request repeated too quickly.
apr 07 21:11:34 nixos systemd[1934]: plasma-kglobalaccel.service: Failed with result 'core-dump'.
apr 07 21:11:34 nixos systemd[1934]: Failed to start KDE Global Shortcuts Server.
apr 07 21:11:35 nixos org.freedesktop.Notifications[2114]: org.kde.knotifications: WaitForName: Service was not registered within timeout
apr 07 21:11:35 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1
apr 07 21:11:43 nixos xsession[2036]: Document not (yet) known, signaling newFile "/home/paki/.config/khotkeysrc"
apr 07 21:11:49 nixos org.kde.KSplash[2188]: org.kde.knotifications: WaitForName: Service was not registered within timeout
apr 07 21:11:49 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activated service 'org.kde.KSplash' failed: Process org.kde.KSplash exited with status 1
apr 07 21:12:15 nixos sddm-helper[2490]: pam_kwallet5: final socket path: /run/user/1001/kwallet5.socket
apr 07 21:12:15 nixos sddm-helper[2492]: Adding cookie to "/home/paki/.Xauthority"
apr 07 21:12:17 nixos xsession[2489]: Qt: Session management error: Could not open network socket
apr 07 21:12:18 nixos xsession[2522]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
apr 07 21:12:18 nixos xsession[2522]: kf.coreaddons: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase
apr 07 21:12:19 nixos xsession[2514]: org.kde.plasma.session: process job  "kcminit_startup" finished with exit code  0
apr 07 21:12:19 nixos xsession[2530]: kf.service.sycoca: Couldn't lock "/home/paki/.cache/ksycoca5_it_wIVPHBt5Js2_6ZI_kLAL8NGV+3A=.lock"
apr 07 21:12:19 nixos xsession[2530]: kf.service.sycoca: Couldn't lock "/home/paki/.cache/ksycoca5_it_wIVPHBt5Js2_6ZI_kLAL8NGV+3A=.lock"
apr 07 21:12:19 nixos xsession[2530]: kf.service.sycoca: Couldn't lock "/home/paki/.cache/ksycoca5_it_wIVPHBt5Js2_6ZI_kLAL8NGV+3A=.lock"
apr 07 21:12:19 nixos xsession[2530]: Could not open sycoca database, you must run kbuildsycoca first!
apr 07 21:12:19 nixos xsession[2530]: kf.service.sycoca: No ksycoca database available! Tried running kbuildsycoca5 ?
apr 07 21:12:19 nixos xsession[2530]: kf.service.services: KServiceTypeTrader: serviceType "KDEDModule" not found
apr 07 21:12:19 nixos xsession[2530]: bluedevil: Created
apr 07 21:12:20 nixos xsession[2534]: Failed to create /home/paki/.cache/mesa_shader_cache for shader cache (Permission denied)---disabling.
apr 07 21:12:20 nixos xsession[2534]: kf.coreaddons: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5079:46: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5081:48: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5083:48: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5087:47: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5089:46: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5097:48: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5101:46: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5103:46: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5107:45: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: /nix/store/cc2grj0c1hix1415iy2v42cpqhl9n7wk-libX11-1.7.0/share/X11/locale/en_US.UTF-8/Compose:5110:46: this compose sequence is a duplicate of another; skipping line
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: Couldn't process include statement for 'it(\0)'
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: Abandoning symbols file "(unnamed)"
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: Failed to compile xkb_symbols
apr 07 21:12:20 nixos xsession[2534]: kwin_xkbcommon: XKB: Failed to compile keymap
apr 07 21:12:20 nixos dbus-daemon[1963]: [session uid=1001 pid=1963] Activating via systemd: service name='org.kde.ActivityManager' unit='plasma-kactivitymanagerd.service' requested by ':1.37' (uid=1001 pid=2534 comm="/run/current-system/sw/bin/kwin_x11 ")
…

After latest update it now workd without the workaround. My bad, just the usual brokeness of updating plasma

After latest update it now workd without the workaround. My bad, just the usual brokeness of updating plasma

That means if I'm currently hitting this issue again (on 21.11), I'll just have to wait with updating for some time, and at a later point the updates will just start working again?

authors: liketechnik pasqui23 ttuegel

repo: NixOS/nixpkgs


text:
Transparent VM-based cross-platform evaluation of nixpkgs

This might be infeasible, but that's what the "feedback requested" field is for, right? :sweat_smile:
Currently, all-packages.nix is a function accepting a system parameter. There's a whole system of crossSystem that I'm not touching right now, as I don't think this proposal affects any of it.
Basically, we have libvirt running on our two major platforms, Linux and Darwin. qemu doesn't work usefully on Darwin, which is why I'm trying to stay more generic, but we do have xhyve which works fine and should be pluggable into libvirt.
Could we just have a simple system that semi-transparently spins up a libvirt VM if you attempt to evaluate nixpkgs on a system other than your own? For example, we could have an attrset that provides VM images for a minimal NixOS distro, another one that can build a minimal Mac OS image (assuming you manually add the base image to the store, to avoid licensing issues, and run it on Mac hardware, which is legal and permitted). That way, I can ask my Mac-running-NixOS to build/test/run Darwin packages and ask my Mac-running-OSX to build Linux packages for me (for e.g., NixOps deployments). We could conceivably also use it to handle Windows builds, but I don't care about those as much right now. The builds would all end up in the host store and everything would otherwise be seamless.
We'd basically be doing a deterministic Nix-flavored Vagrant and using it transparently. We could even expose that to the user!
It doesn't seem like we're that far off right now. runInLinuxVM is pretty close, but would just need to be generalized a bit, and plugged into the evaluation of nixpkgs.
Edit: TBC, if I were to make this into a concrete proposal, it would be:

Generalize runInLinuxVM to use libvirt (or call it something else) and work on both Darwin and Linux. Would need to make sure it could share the host store.
Keep a handful of minimal VM definitions around for it to run for different system values
Add a shim to all-packages.nix that would call runInLinuxVM
Make sure none of this produces different hashes than it would on the native platform

@shlevy says this is probably better suited to a build hook, which makes this all look a bit more like the idea I think @nbp mentioned to me back at NixCon. I'd support that, too, if it could lead to similar outcomes :grinning:

The build hook mechanism already exists and is made for distributing builds to computers which already have a nix-daemon running.
The question of cross-compilation is a bit harder, and would require a way to register in the nix.conf file, a reference to an emulation platform, whether this is libvirt or qemu.
Basically, the cross-compilation problem can be separated in 3 stages:

Cross-compile on the current environment.
Cross-compile on a managed environment.
Compile on a remote computer.

(1) is extremely hard, mostly because none of the packages get it right, or they never considered it.
(2) is difficult, as it requires to manage another build environment, and to bridge the operations necessary for building.
(3) is easy as it is already implemented under the form of a build hook.
Currently we have a few packages with (1), and are able to distribute builds (3).  Sadly, so far we have no good solution for cross compiling the nix daemon yet (not 1), and if the targeted environment is not a capable of compiling (not 3), then we are left with a gap for doing cross-compilation.
I definitely think that we can add a chroot-hook to the Nix daemon, which can be used to manage an environment which will allow us to cross-compile.
Note, runInLinuxVM is nice, but as opposed to (2) and (3), the result of your compilation will get a different hash as the hash that you would expect to have if your were to build natively.  Which I why I would recommend to have a chroot-hook for some systems in the nix.conf, as this will allow us to blend cross-compiled builds in managed environment, as-if they were compiled natively.

It might be nicer (although more difficult) to cross compile for MacOS using a Linux built GCC. Similar to using MingGW to compile for windows. Although I don't know about the state of this support (since GCC supports darwin I don't think it will be a problem) and you run into the problem of having a different "host compiler" and "target compiler".
From my understanding NixOS has some cross compilation support but I don't know how well that works.

Standard cross-compilation works, but many packages need tweaks for particular platform combinations. For a couple of months I worked on linux -> mingw cross for some packages, and I think I saw some changes for linux -> darwin as well, but it might've rotten a bit...

It might be worth supporting anyways however testing is generally pretty difficult. It also seems a lot more elegant then having to do it on Apple hardware and in a VM.

Cross-compiling is more difficult, but the core autotools-based packages tend to handle that relatively well.

@copumpkin with the work of @Ericson2314 this can be considered implemented, right?

Cross works, but VM builds have a meaningfully different outcome in that normal binary caches can be used. I would thus keep this open.

We do have an implementation nowadays: https://github.com/nix-community/linuxkit-builder

source: gharchive/issue

authors: Ericson2314 Profpatsch copumpkin dezgeg kevincox nbp vcunat

license: MIT

license_type: permissive

license_source: github-api


text:
Vulnerability roundup 103: openexr-2.5.3: 4 advisories [8.8]

search, files

[ ] CVE-2021-23169 CVSSv3=8.8 (nixos-20.09, nixos-21.05, nixos-unstable)
[ ] CVE-2021-23215 CVSSv3=5.5 (nixos-20.09, nixos-21.05, nixos-unstable)
[ ] CVE-2021-26260 CVSSv3=5.5 (nixos-20.09, nixos-21.05, nixos-unstable)
[ ] CVE-2021-26945 CVSSv3=5.5 (nixos-20.09, nixos-21.05, nixos-unstable)

Scanned versions: nixos-20.09: 86d3781c390; nixos-21.05: 0b8b127125e; nixos-unstable: 1905f5f2e55.

See also: #120404

I'm fairly certain all of these are fixed in 2.5.7 except CVE-2021-26945 which I think only affects code that isn't present until v3.

authors: ckauhaus risicle


text:
github: *.nix files have no syntax highlighting anymore

I'm sure it worked less than 24h ago. Perhaps it's just a temporary problem?

stdenv.mkDerivation {
  name = "foo";
}

Might be: https://github.com/github/linguist/commit/aa6b88197123926c26b16a6a17ea5846b3917fc9

Aha see https://github.com/github/linguist/commit/07096f84f5a2cd96efbb39995405442fea178d48

https://github.com/github/linguist/issues/2885

Their platform sucks so much even they are unable to use it correctly so that maintainers would get an email notification in time.

This is thankfully resolved :smile:

authors: copumpkin domenkozar globin vcunat


text:
wrapProgram should not move script files. instead, patch shebang lines

fix wrapProgram for some cases
ping wrapProgram contributors
@edolstra @4z3 @7c6f434c @ttuegel @zimbatm @mbakke @Profpatsch @abbradar @globin @ahmedtd @peti @FRidh @dezgeg @orivej @alyssais @tathougies @deliciouslytyped @chkno @Gabriel439 @talyz @xworld21 @ncfavier
based on https://github.com/NixOS/nixpkgs/pull/171424#issuecomment-1118283898
current situation
say we have a script.py file
1. patchPythonScript adds
sys.argv[0] = "/nix/store/*/bin/script.py"

2. wrapProgram moves script.py to .script.py-wrapped
benefits
this results in a good user experience
because often, the script name is derived from sys.argv[0]
and the user expects script.py not .script.py-wrapped
when the script wants to call itself, it should exec the bash wrapper sys.argv[0]
ideally, the script has no knowledge of the hidden .script.py-wrapped file
problems
patching sys.argv[0] breaks some scripts, and throws a SyntaxError
  File "/nix/store/f6xz7a877cljh2ij1yhrfkd3flsqzp2i-xpra-4.0.6/bin/xpra", line 2
    export PATH='/nix/store/q6gfck5czr67090pwm53xrdyhpg6bx67-python3-3.8.9/bin:/nix/store/...'${PATH:+':'}$PATH
           ^
SyntaxError: invalid syntax

... because python is trying to parse the bash script script.py
when it should parse the python script .script.py-wrapped
examples:

django webserver manage.py. workaround: dont wrap the script = dont run wrapProgram
xpra. workaround: compensate wrapProgram by setting sys.argv[0] = "/nix/store/*/bin/.script.py-wrapped"
nixpkgs issues: python SyntaxError: invalid syntax

node throws
PATH=${PATH:+':'$PATH':'}
      ^

SyntaxError: Unexpected token '{'

perl throws
Scalar found where operator expected at .test.py.nixenv.sh line 1, near "':'$PATH"
	(Missing operator before $PATH?)

ruby throws
.test.py.nixenv.sh:1: `${' is not allowed as a global variable name
PATH=${PATH:+':'$PATH':'}

solutions
patch broken packages
aka the "conservative" solution
keep the wrapProgram strategy (move script.py to .script.py-wrapped)
and fix the rare cases where it breaks
problem: more work to maintain packages.
an ideal solution should always work (except upstream bugs)
benefit: wrapProgram treats scripts and binaries equally.
all are wrapped by bash scripts, which exec .name-wrapped
patchPythonScript should keep sys.argv[0]
this will fix some scripts, and break other scripts
scripts that derive their name from sys.argv[0] now say .name-wrapped
polyglot scripts
this is a nice trick that works with python scripts
#! /usr/bin/env bash
""":"
# bash
export PATH="/nix/store/xxx/bin:$PATH"
exec /nix/store/xxx/bin/python "$0"
"""
# python
print("hello")

problem: can break in rare cases, language-specific (ideal solution should be language-agnostic)
nixenv
add a nixenv program, that works similar to /usr/bin/env
the python script demo.py
#! /usr/bin/env -S python -u
import requests; requests.get("https://github.com/")

is patched to the python script /nix/store/*/bin/demo.py
#! /nix/store/*/bin/nixenv -S /nix/store/*/bin/python -u
import requests; requests.get("https://github.com/")

by default, nixenv will load /nix/store/*/bin/.demo.py.nixenv.sh
which is the bash script from wrapProgram, minus the final exec
so, we only need to ...

patch the shebang line of the original script demo.py
add a special file .demo.py.nixenv.sh next to the original script

maybe add a symlink .demo.py-wrapped for backward compatibility
nested wrapping works by

moving the previous env file to .demo.py.nixenv.2.sh
in the new env file .demo.py.nixenv.sh, call source .demo.py.nixenv.2.sh

nixenv looks like
#! /usr/bin/env bash
# nixenv
arg="$1"
bin="$2"
if [ "${arg:0:2}" = "-S" ]; then
  set -- ${arg:2}
  args=("$@")
else
  args=("$arg")
fi
bin="$(realpath "$bin")"
dir="$(dirname "$bin")"
name="$(basename "$bin")"
env="$dir/.$name.nixenv.sh"
source "$env"
exec $@ "$bin"

nixenv (verbose)

#! /usr/bin/env bash

arg="$1" # string of arguments
bin="$2" # path to script. example: ./test.py

echo "nixenv: arg = $arg"

if [ "${arg:0:2}" = "-S" ]; then
  echo "nixenv: parsing args"
  set -- ${arg:2}
  args=("$@")
  for (( i=0; i < ${#args[@]}; i++ )); do
    echo "nixenv: [$i] = ${args[i]}"
  done
else
  args=("$arg")
fi

bin="$(realpath "$bin")"
dir="$(dirname "$bin")"
name="$(basename "$bin")"
env="$dir/.$name.nixenv.sh"

echo "nixenv: bin = $bin"
echo "nixenv: dir = $dir"
echo "nixenv: env = $env"

echo "nixenv: sourcing env"
source "$env"

echo "nixenv: exec: $@ $bin"
exec $@ "$bin"

test.py
#! /tmp/nixenv/nixenv -S /nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin/python3.9 -u

import site
import functools
functools.reduce(
  lambda k, p: site.addsitedir(p, k),
  ['/nix/store/r2fhwa0i43wah79yhpxzv0avp0a820nf-test-python-1/lib/python3.9/site-packages'],
  site._init_pathinfo()
);

import sys
print("sys.argv"); print(sys.argv)

import os
print("os.environ['PATH']"); print(os.environ['PATH'])
print("os.environ['PYTHONNOUSERSITE']"); print(os.environ['PYTHONNOUSERSITE'])

.test.py.nixenv.sh (generated by makeWrapper)
PATH=${PATH:+':'$PATH':'}
PATH=${PATH/':''/nix/store/r2fhwa0i43wah79yhpxzv0avp0a820nf-test-python-1/bin'':'/':'}
PATH='/nix/store/r2fhwa0i43wah79yhpxzv0avp0a820nf-test-python-1/bin'$PATH
PATH=${PATH#':'}
PATH=${PATH%':'}
export PATH
PATH=${PATH:+':'$PATH':'}
PATH=${PATH/':''/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin'':'/':'}
PATH='/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin'$PATH
PATH=${PATH#':'}
PATH=${PATH%':'}
export PATH
export PYTHONNOUSERSITE='true'

example output
$ ./test.py
nixenv: arg = -S /nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin/python3.9 -u
nixenv: parsing args
nixenv: [0] = /nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin/python3.9
nixenv: [1] = -u
nixenv: bin = /tmp/nixenv/test.py
nixenv: dir = /tmp/nixenv
nixenv: env = /tmp/nixenv/.test.py.nixenv.sh
nixenv: sourcing env
nixenv: exec: /nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin/python3.9 -u /tmp/nixenv/test.py
sys.argv
['/tmp/nixenv/test.py']
os.environ['PATH']
/nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin:/nix/store/r2fhwa0i43wah79yhpxzv0avp0a820nf-test-python-1/bin:...
os.environ['PYTHONNOUSERSITE']
true

limitation on darwin:

In Solaris- and Darwin-derived operating systems (such as macOS), the file specified by interpreter must be an executable binary and cannot itself be a script. (wikipedia: Shebang)

dupe of https://github.com/NixOS/nixpkgs/issues/150841 https://github.com/NixOS/nixpkgs/issues/144981 https://github.com/NixOS/nixpkgs/issues/142674 and others
makeBinaryWrapper fixes many of the cases including the darwin issue
now we just need to switch various places to using it
see https://github.com/NixOS/nixpkgs/issues?q=makeBinaryWrapper

I don't think makeBinaryWrapper fixes the issues presented here: python would fail trying to load an ELF file instead of a Bash script.
I'm not in favour of introducing more hacks (certainly not polyglot scripts) into our general wrapping machinery and I think patching broken programs individually is fine, but take that with a grain of salt as I haven't really been near the Python ecosystem.
Ideally a file should be either an opaque executable that can be wrapped without care, or a language-specific file. When a file is used as both I'd argue that's a layer violation that should be fixed upstream.
Obligatory mention of https://github.com/NixOS/rfcs/pull/75 although I have no idea whether it would solve this.

dupe of #150841 #144981 #142674 and others

yes #150841

I don't think makeBinaryWrapper fixes the issues presented here: python would fail trying to load an ELF file instead of a Bash script.

yes. also mentioned in https://github.com/NixOS/nixpkgs/pull/124556#issuecomment-995559052

... or a standard one and load a configuration file where the path is added to the shebang

that would be my ideal solution, as it's more transparent than a million different binary wrappers
here is a demo: https://github.com/milahu/envi
it's a C impl of my nixenv bash script, with support for nested wrapping
this will call bash with .test.py.env0.sh and .test.py.env1.sh files next to the script file test.py
im using bash scripts, as that's compatible with the current impl of makeWrapper
and bash scripts give the greatest flexibility → run arbitrary code in wrappers

Here you can run into shebang line length limitations if you pass the path.

127 chars
#!/nix/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-nixenv-1.2.345/bin/nixenv xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
so we cannot pass the config's absolute path
but usually, there is no need to pass options
as the config path can be derived from the script path: script.py → .script.py.env0.sh
also the interpreter arguments are stored in .script.py.env0.sh
only non-standard config paths need to be passed as relative paths
/nix/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-nixenv-1.2.345/bin/nixenv .some-where-else.env0.sh

please don't spam a large group of contributors into a new discussion.

sorry for the noise : /
i sent 22 sorries to the nixos foundation, to pay for my sin of pinging 22 people

authors: Artturin milahu ncfavier


text:
fvm request

Project description
Flutter Version Management
Metadata

homepage URL: https://fvm.app
source URL: https://github.com/fluttertools/fvm
license: mit,
platforms: unix, linux, darwin

duplicate of #186998


text:
Using the llmvPkgs_15.stdenv toolchain

Hi @rrbutani. I'm trying to set up the llvmPackages_15 toolchain in a development environment for rules_ll to get a reproducible host compiler.
With a shell.nix like
pkgs.mkShell {
  buildInputs = [
    pkgs.llvmPackages_15.bintools
    pkgs.llvmPackages_15.clang
    pkgs.llvmPackages_15.compiler-rt
    pkgs.llvmPackages_15.libcxx
    pkgs.llvmPackages_15.libcxxabi
    pkgs.llvmPackages_15.libunwind
    pkgs.llvmPackages_15.lld
  ];
}

I'm having some trouble getting this toolchain to work as I want to though :sweat_smile: Either this comes from misconfiguration on my end or some issues in the nix package. I'm also finding it rather hard to find documentation on this.

I can't seem to be able to encapsulate the toolchain from its gcc depencencies. First off I think its less than ideal that I'd have to run clang like

clang -stdlib=libc++ -fuse-ld=lld -rtlib=compiler-rt main.cpp

and even then I'm still seeing artifacts of -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0 in the linker path. I think invoking clang instead of clang++ for c++ is discouraged anyways, but clang++ does not work with these simpler options.

For some reason clang++ seems to ignore -stdlib=libc++ and the host's /usr/include/c++/v1 leaks into clang++ invocations:

clang++ -stdlib=libc++ main.cpp

In file included from main.cpp:1:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/iostream:39:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/ostream:38:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/ios:42:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/bits/ios_base.h:41:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/bits/locale_classes.h:40:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/string:55:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/bits/basic_string.h:6608:
In file included from /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/ext/string_conversions.h:41:
/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/cstdlib:177:3: error: declaration conflicts with target of using declaration already in scope
  div(long __i, long __j) { return ldiv(__i, __j); }
  ^
/usr/include/c++/v1/stdlib.h:150:41: note: target of using declaration
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
                                        ^
/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/cstdlib:145:11: note: using declaration
  using ::div;
          ^

The Clang docs encourage a pattern like this for encapsulation, but I think it should be possible to default to this behavior on the nix side:
clang++ -nostdinc++ -nostdlib++             \
          -isystem <install>/include/c++/v1 \
          -L <install>/lib                  \
          -Wl,-rpath,<install>/lib          \
          -lc++                             \
          main.cpp

The default linker is ld. This seems be the case for the llvmPackages_15.stdenv as well. Would it be possible to change this default to lld on the nix package side? Otherwise one would have to use -fuse-ld=lld or $LD=ld.lld overrides which I find rather unintuitive on a pure Clang/LLVM toolchain.

A similar issue seems to be true for the bintools. This is how the Make variables currently look like:

AR=ar
NM=nm
STRIP=strip
OBJCOPY=objcopy
OBJDUMP=objdump
RANLIB=ranlib
READELF=readelf

It would be nice if there was an obvious way to make these use their llvm counterparts instead without having to set this manually. I initially thought they were symlinks to the llvm variants already but it turned out that ar --help and llvm-ar --help do in fact point to different tools.
I'm kinda new to nix so I may be overlooking a few things here. It may also be relevant that I'm using Gentoo with the experimental clang profile, which is one of the very few (the only?) linux distros using clang/glibc system toolchain.

Note that mkShell uses the default stdenv, which comes with a gcc toolchain. Use llvmPackages_15.stdenv.mkDerivation instead. About lld, I think you may have a look at pkgsLLVM (but maybe this has to do with libc++ vs libstdc++, I'm not sure).

@symphorien Overriding the stdenv only seems to affect CC and CXX but not any of the other make variables. It still uses libstdc++, libgcc, libgcc_s etc.
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/d231d18e4aa5e1d00f86b4f484f9e4344538e3ea.tar.gz") {} }:

#pkgs.mkShell.override {
#  stdenv = pkgs.llvmPackages_15.stdenv;
#}

pkgs.llvmPackages_15.stdenv.mkDerivation {
  name = "env";

  buildInputs = [
    pkgs.llvmPackages_15.bintools
    pkgs.llvmPackages_15.clang
    pkgs.llvmPackages_15.compiler-rt
    pkgs.llvmPackages_15.libcxx
    pkgs.llvmPackages_15.libcxxabi
    pkgs.llvmPackages_15.libunwind
    pkgs.llvmPackages_15.lld
    pkgs.which
  ];

  shellHook = ''
echo '#include <iostream>

auto main() -> int {
    std::cout << "Hello" << std::endl;
}' > main.cpp

echo
echo FIRST_INVOCATION
echo

clang++ -v -Wl,--verbose -fuse-ld=lld main.cpp

echo
echo SECOND_INVOCATION
echo

clang++ \
    -v \
    -Wl,--verbose \
    -rtlib=compiler-rt \
    -unwindlib=libunwind \
    -nostdinc++ \
    -nostdlib++ \
    -fuse-ld=lld \
    -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include/c++/v1 \
    -l:libc++.a \
    -lc++abi \
    main.cpp
  '';
}

In the above file, when run with nix-shell --pure, the FIRST_INVOCATION shows that basically the entire GCC toolchain is used, except for clang as compiler. The SECOND_INVOCATION seems to change at least the includes and linkage deps to the LLVM variants, but this seems awfully hacky to me.
Note that the additional libcxx include path is needed since only .../include is exported by llvmPackages_15.libcxx, but not the .../include/c++/v1.
Also note that -lc++ seems to be bugged, as it will correctly link libc++ but then raise the bogus error unable to find library -l, regardless of whether the linker is lld or ld.

FIRST_INVOCATION

clang version 15.0.7
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/x4b3ywygnx0cla63wp50cpyhrs92n7lh-clang-15.0.7/bin
Found candidate GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0
Found candidate GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0
Selected GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/nix/store/x4b3ywygnx0cla63wp50cpyhrs92n7lh-clang-15.0.7/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -clear-ast-before-
backend -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-
errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger
-tuning=gdb -v -fcoverage-compilation-dir=/home/aaron/aaronmondal/rules_ll -nostdsysteminc -resource-dir /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/reso
urce-root -idirafter /nix/store/49zl26cmymymzzh1xqahd6cp1g10l141-glibc-2.35-224-dev/include -isystem /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/i
nclude -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include -isystem /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isyst
em /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include -isystem /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include -isystem /nix/s
tore/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include -isystem /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isystem /nix/store/4z58wqnr
7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include -isystem /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include -isystem /nix/store/5awygvmavjjasnxp1
q04q106q9x316ax-libcxx-15.0.7-dev/include -isystem /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isystem /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2r
yz-lld-15.0.7-dev/include -isystem /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0 -isystem /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/i
nclude/c++/11.3.0/x86_64-unknown-linux-gnu -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-u
nknown-linux-gnu/11.3.0/../../../../include/c++/11.3.0 -internal-isystem /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../.
./../../include/c++/11.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../.
./../include/c++/11.3.0/backward -internal-isystem /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/include -O2 -Wformat -Wformat-security -Werr
or=format-security -fdeprecated-macro -fdebug-compilation-dir=/home/aaron/aaronmondal/rules_ll -ferror-limit 19 -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgn
uc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /run/user/1000/main-df3b94.o -x c++ main.c
pp
clang -cc1 version 15.0.7 based upon LLVM 15.0.7 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0"
ignoring duplicate directory "/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include
 /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include
 /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include
 /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include
 /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0
 /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/include/c++/11.3.0/x86_64-unknown-linux-gnu
 /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../include/c++/11.3.0/backward
 /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/include
 /nix/store/49zl26cmymymzzh1xqahd6cp1g10l141-glibc-2.35-224-dev/include
End of search list.
 "/nix/store/1clkc48ilspa1snkmpwj3c5k7kfbdga5-llvm-binutils-wrapper-15.0.7/bin/ld.lld" -pie --eh-frame-hdr -m elf_x86_64 -o a.out /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-
glibc-2.35-224/lib/Scrt1.o /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crti.o /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown
-linux-gnu/11.3.0/crtbeginS.o -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/
60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15
.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli438iyhq39
g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/nix/store
/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunw
ind-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/56gi28wli438iy
hq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64
-unknown-linux-gnu/11.3.0 -L/nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/x86_64-unknown-linux-gnu/lib -L/nix/store/5dr46cz3z9ggvqbxyqfa0zl7lyzj4739-clang-15.0.7
-lib/lib -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0 -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc
/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib -dynamic-linker=/nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.3
5-224/lib/ld-linux-x86-64.so.2 --verbose /run/user/1000/main-df3b94.o -rpath /nix/store/5fnassgf4rm2amqv6z23289v2qmd1xg6-env/lib64 -rpath /nix/store/5fnassgf4rm2amqv6z23289v2
qmd1xg6-env/lib -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/crtendS.o /nix/sto
re/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crtn.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/Scrt1.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crti.o
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/crtbeginS.o
ld.lld: /run/user/1000/main-df3b94.o
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64/libstdc++.a
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libm.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libm.so.6
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libmvec.so.1
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/libgcc.a
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/libgcc.a
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc.so.6
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc_nonshared.a
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/ld-linux-x86-64.so.2
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libgcc_s.so.1
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/libgcc.a
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/libgcc.a
ld.lld: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/crtendS.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crtn.o

SECOND_INVOCATION

clang version 15.0.7
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/x4b3ywygnx0cla63wp50cpyhrs92n7lh-clang-15.0.7/bin
Found candidate GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/gcc/x86_64-unknown-linux-gnu/11.3.0
Found candidate GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0
Selected GCC installation: /nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/nix/store/x4b3ywygnx0cla63wp50cpyhrs92n7lh-clang-15.0.7/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -clear-ast-before-
backend -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-
errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger
-tuning=gdb -v -fcoverage-compilation-dir=/home/aaron/aaronmondal/rules_ll -nostdsysteminc -nostdinc++ -resource-dir /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper
-15.0.7/resource-root -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include/c++/v1 -idirafter /nix/store/49zl26cmymymzzh1xqahd6cp1g10l141-glibc-2.35-
224-dev/include -isystem /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-de
v/include -isystem /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isystem /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include -isyst
em /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include -isystem /ni
x/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isystem /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include -isystem /nix/store/5q1pkviy
c3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include -isystem /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include -isystem /nix/store/1zg48f5wh619b3
ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include -isystem /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -internal-
isystem /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdeb
ug-compilation-dir=/home/aaron/aaronmondal/rules_ll -ferror-limit 19 -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgnuc-version=4.2.1 -fcxx-exceptions -fexcepti
ons -fcolor-diagnostics -vectorize-loops -vectorize-slp -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /run/user/1000/main-de9788.o -x c++ main.cpp
clang -cc1 version 15.0.7 based upon LLVM 15.0.7 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include"
ignoring duplicate directory "/nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include"
#include "..." search starts here:
#include <...> search starts here:
 /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include/c++/v1
 /nix/store/5q1pkviyc3ppiqqsxq2v2z3ka4qlnba1-compiler-rt-libc-15.0.7-dev/include
 /nix/store/5awygvmavjjasnxp1q04q106q9x316ax-libcxx-15.0.7-dev/include
 /nix/store/1zg48f5wh619b3ya1nz8id7bwcylmlx5-libcxxabi-15.0.7-dev/include
 /nix/store/4z58wqnr7mwp6ssfypad5cl6lrgf2ryz-lld-15.0.7-dev/include
 /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/include
 /nix/store/49zl26cmymymzzh1xqahd6cp1g10l141-glibc-2.35-224-dev/include
End of search list.
 "/nix/store/1clkc48ilspa1snkmpwj3c5k7kfbdga5-llvm-binutils-wrapper-15.0.7/bin/ld.lld" -pie --eh-frame-hdr -m elf_x86_64 -o a.out /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-
glibc-2.35-224/lib/Scrt1.o /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crti.o /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-roo
t/lib/linux/clang_rt.crtbegin-x86_64.o -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/n
ix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-
libcxx-15.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli
438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib -L/
nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb
8c-libunwind-15.0.7/lib -L/nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib -L/nix/store/56gi28wli438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/56gi2
8wli438iyhq39g8kjpbsz04s7s1-lld-15.0.7-lib/lib -L/nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib/g
cc/x86_64-unknown-linux-gnu/11.3.0 -L/nix/store/sq78g74zs4sj7n1j5709g9c2pmffx1y8-gcc-11.3.0-lib/x86_64-unknown-linux-gnu/lib -L/nix/store/5dr46cz3z9ggvqbxyqfa0zl7lyzj4739-cla
ng-15.0.7-lib/lib -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/lib64/gcc/x86_64-unknown-linux-gnu/11.3.0 -L/nix/store/z1yw9cw97bcdfmxz5wk7j1bycw42r1mw-gcc-11.3.0/
lib64/gcc/x86_64-unknown-linux-gnu/11.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib -dynamic-linker=/nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-
glibc-2.35-224/lib/ld-linux-x86-64.so.2 --verbose -l:libc++.a -lc++abi /run/user/1000/main-de9788.o -rpath /nix/store/5fnassgf4rm2amqv6z23289v2qmd1xg6-env/lib64 -rpath /nix/s
tore/5fnassgf4rm2amqv6z23289v2qmd1xg6-env/lib -lm /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/libclang_rt.builtins-x86_64.a --as-
needed -lunwind --no-as-needed -lc /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/libclang_rt.builtins-x86_64.a --as-needed -lunwind
 --no-as-needed /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/clang_rt.crtend-x86_64.o /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-
glibc-2.35-224/lib/crtn.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/Scrt1.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crti.o
ld.lld: /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/clang_rt.crtbegin-x86_64.o
ld.lld: /nix/store/yvrj6nxc7iyngicpd5d13pzfd6m1vari-libcxx-15.0.7/lib/libc++.a
ld.lld: /nix/store/rr6bk84i67k8pk7nap0pzfc4pwgsk66w-libcxxabi-15.0.7/lib/libc++abi.so
ld.lld: /run/user/1000/main-de9788.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libm.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libm.so.6
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libmvec.so.1
ld.lld: /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/libclang_rt.builtins-x86_64.a
ld.lld: /nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib/libunwind.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc.so.6
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libc_nonshared.a
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/ld-linux-x86-64.so.2
ld.lld: /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/libclang_rt.builtins-x86_64.a
ld.lld: /nix/store/60258c51xdkhcxlkr2f66armdfsdnb8c-libunwind-15.0.7/lib/libunwind.so
ld.lld: /nix/store/al3wr59nslk87rh72pwvvhyijnljz7m7-clang-wrapper-15.0.7/resource-root/lib/linux/clang_rt.crtend-x86_64.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/crtn.o
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libpthread.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libpthread.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libpthread.so
ld.lld: /nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib/libpthread.so

Yes, clangStdenv still uses libstdc++ on linux as otherwise things built with clangStdenv (eg chromium) could not link to libraries built with stdenv (nearly everything). pkgsLLVM is a package set containing packages built with libc++ from stdenv up, and possibly with lld, but I'm not sure. Maybe try pkgsLLVM.stdenv.mkDerivation.

Also don't add unwrapped toolchain parts in buildInputs this can only break stuff. The nix way is to provide a modified stdenv, but adding stuff on top of stdenv does not work.

Ok I think now I understand a bit better. I guess what I am asking for is something similar to pkgsLLVM.stdenv but, better/explicitly documented, fully LLVM based, including the smaller tools like llvm-ar etc, and compatible with more recent versions of LLVM. The current pkgsLLVM defaults to LLVM11 which is ancient and doesn't cover the entire spectrum of LLVM tools.
Since I feel like I really need this in my life, I'll try to get something like this working, but I have like 2 days of nix experience, so it may take a while until I come up with something usable :sweat_smile:

Ah sorry I meant pkgsLLVM.llvmPackages.stdenv.mkDerivation

authors: aaronmondal symphorien


text:
qt6.wrapQtAppsHook doesn't add qtwayland to QT_PLUGIN_PATH

Describe the bug
Strictly not a bug but QT6 applications don't run natively on Wayland while QT5 does.
This is because the QT5 wrapper script adds qtwayland to QT_PLUGIN_PATH but QT6's doesn't.
$ nix why-depends nixpkgs#qt6.wrapQtAppsHook nixpkgs#qt6.qtwayland
this path will be fetched (0.94 MiB download, 6.27 MiB unpacked):
  /nix/store/2ipm79yag9wk6vm99gcipn1yig6pwdsx-qtwayland-6.4.2
'flake:nixpkgs#qt6.wrapQtAppsHook' does not depend on 'flake:nixpkgs#qt6.qtwayland'

Steps To Reproduce
The following command returns nothing:
$ cat $(which <QT6 application>) | grep qtwayland

Expected behavior
wrapQtAppsHook should depend on qtwayland like with Qt5 and should be added to QT_PLUGIN_PATH.
$ nix why-depends nixpkgs#libsForQt5.qt5.wrapQtAppsHook nixpkgs#libsForQt5.qt5.qtwayland
/nix/store/2fh9czcdfxfpdwr36zgyp58q2q326fxs-wrap-qt5-apps-hook
└───/nix/store/pfyknhahjbnglqiyxkdg1xpq8pi9rrs4-qtwayland-5.15.8-dev
    └───/nix/store/1bzzap06qa5ywr37538f2i4qggh2q177-qtwayland-5.15.8-bin

$ cat $(which mgba-qt) | grep wayland
QT_PLUGIN_PATH=${QT_PLUGIN_PATH/':''/nix/store/ijydh84zxhny22sdkad9m8fqmmcyi9c0-qtwayland-5.15.8-bin/lib/qt-5.15.8/plugins'':'/':'}
QT_PLUGIN_PATH='/nix/store/ijydh84zxhny22sdkad9m8fqmmcyi9c0-qtwayland-5.15.8-bin/lib/qt-5.15.8/plugins'$QT_PLUGIN_PATH
QML2_IMPORT_PATH=${QML2_IMPORT_PATH/':''/nix/store/ijydh84zxhny22sdkad9m8fqmmcyi9c0-qtwayland-5.15.8-bin/lib/qt-5.15.8/qml'':'/':'}
QML2_IMPORT_PATH='/nix/store/ijydh84zxhny22sdkad9m8fqmmcyi9c0-qtwayland-5.15.8-bin/lib/qt-5.15.8/qml'$QML2_IMPORT_PATH

Notify maintainers
@milahu @NickCao (Maintainers from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/qt-6/qtModule.nix#L85)
Metadata
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.0, NixOS, 23.05 (Stoat), 23.05.20230225.b1f87ca`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.2`
 - channels(root): `"nixos-22.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

This is the intended behavior, see motivation in: https://github.com/NixOS/nixpkgs/pull/174946

So, the correct way to give QT6 applications qtwayland support is to add it as a build input; seems fair. Is there any reason why QT5 doesn't do the same thing?

Mainly historical reason.

Okay, understood, thanks for the explanation. I guess I'll send a PR to fix some of the packages I know case-by-case.

authors: NickCao sagehane


text:
Build failure: teams_1.5.00.23861_amd64.deb, webarchive mirror too slow

Steps To Reproduce
Steps to reproduce the behavior:

sudo nixos-rebuild switch

[nix@nixos:~/Documents/Repository/Docker] sudo nixos-rebuild switch
[sudo] password for nix:
building Nix...
building the system configuration...
these 14 derivations will be built:
 /nix/store/r74qibn660f03vv0awsjazvlz5g5b4ap-teams_1.5.00.23861_amd64.deb.drv
 /nix/store/7c4c7rm4f5zdx5l5m720mcs5vh0bxwl1-teams-1.5.00.23861.drv
 /nix/store/vi690wvalpvima56dgp04kq54pvw6vyc-system-path.drv
 /nix/store/73g7kap9ccyf8y86bwljnvhx3fic8jzr-unit-accounts-daemon.service.drv
 /nix/store/sq3rcsb35mf0jl244iblsnzjvivlgl2c-dbus-1.drv
 /nix/store/6gnyk8d3gl83prb839jsh4r787fizasr-X-Restart-Triggers.drv
 /nix/store/qv49hg1fc02z3fairmkl4hp88bshdb9v-unit-dbus.service.drv
 /nix/store/b8xhkgxhczxsch2c2rgwgz9qzbqmfxmi-X-Restart-Triggers.drv
 /nix/store/w54571nl3hf6a90swiidkngrigg4y348-unit-polkit.service.drv
 /nix/store/5y8ja4bdrfxi0f5gjk2wy6cnkr5mb09x-system-units.drv
 /nix/store/s6gj3932x8p4s7pgvic47clj949nj22v-unit-dbus.service.drv
 /nix/store/kkhjpzh4abanw0ss6hwrn7i175kn5z10-user-units.drv
 /nix/store/xxs75sihxblg8r1b0wzsl97cfxyfy10a-etc.drv
 /nix/store/225h1y6rsdvn31hpxi62yb8jfj85cakv-nixos-system-nixos-23.11pre499022.e18dc963075.drv
building '/nix/store/r74qibn660f03vv0awsjazvlz5g5b4ap-teams_1.5.00.23861_amd64.deb.drv'...

trying https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.5.00.23861_amd64.deb
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
 0    14    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404

trying https://web.archive.org/web/20221130115842if_/https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.5.00.23861_amd64.deb
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

curl: (56) Recv failure: Connection timed out
error: cannot download teams_1.5.00.23861_amd64.deb from any mirror
error: builder for '/nix/store/r74qibn660f03vv0awsjazvlz5g5b4ap-teams_1.5.00.23861_amd64.deb.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/7c4c7rm4f5zdx5l5m720mcs5vh0bxwl1-teams-1.5.00.23861.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vi690wvalpvima56dgp04kq54pvw6vyc-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/225h1y6rsdvn31hpxi62yb8jfj85cakv-nixos-system-nixos-23.11pre499022.e18dc963075.drv' failed to build

Metadata
[nix@nixos:~/Documents/Repository/Cloud-init] nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.35, NixOS, 23.11 (Tapir), 23.11pre497786.1c9db9710cb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

The official teams linux client is abandoned by upstream and was removed in https://github.com/NixOS/nixpkgs/pull/257818.
Consider using the unofficial teams-for-linux package.

authors: KCynk gepbird


text:
Package request: JetBrains Fleet

Project description
Next-generation IDE by JetBrains (VSCode clone by JetBrains)
Metadata

homepage URL: https://www.jetbrains.com/fleet/
source URL: -
license: unfree
platforms: linux, darwin

I did some work on this: https://github.com/sersorrel/nixpkgs/tree/jetbrains-fleet
but ran into a bunch of issues I have no idea how to solve

@sersorrel Just built and ran it off of current master, and this was the result: https://gist.github.com/l0b0/efbbf20b262ae4530a4669d64a7e076b. Is that the error you're getting?

that looks something like what I remember, yep.

Note that one can currently use Fleet on NixOS by installing the jetbrains-toolbox nixpkgs package and installing and running Fleet through there.


text:
Update request: cudaPackages.tensorrt 8.6.1.6 → 10.1.0.27

Project description
Project  cudaPackages.tensorrt version is already 10.1.0.27, but in the nixpkgs it is still 8.6.1.6 (which is broken by the way).

Metadata

homepage URL: https://developer.nvidia.com/tensorrt
source URL:
license: mit, bsd, gpl2+ , ...
platforms: unix, linux, darwin, ...

Add a :+1: reaction to issues you find important.

CC @aidalgol who originally packaged tensorrt; @ksenia-portu, my impression is that tensorrt in Nixpkgs so far hasn't seen many users and is in low maintenance mode. Let @aidalgol correct me, but I think it would benefit from another maintainer who would also be actively using the package

I think it would benefit from another maintainer who would also be actively using the package

Agree 100%.  I packaged it for a hobby project that I have not had time to spend on in a while now.  That and I am not very skilled in CUDA tooling in general.

authors: SomeoneSerge aidalgol ksenia-portu


text:
Build failure: solaar

Steps To Reproduce
Steps to reproduce the behavior:

build solaar

Build log
❯ nix run nixpkgs#solaar
error:
       … while evaluating the attribute 'drvPath'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/lib/customisation.nix:365:7:

          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'solaar-1.1.13'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'propagatedBuildInputs' of derivation 'solaar-1.1.13'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:386:7:

          385|       depsHostHostPropagated      = elemAt (elemAt propagatedDependencies 1) 0;
          386|       propagatedBuildInputs       = elemAt (elemAt propagatedDependencies 1) 1;
             |       ^
          387|       depsTargetTargetPropagated  = elemAt (elemAt propagatedDependencies 2) 0;

       … while evaluating derivation 'python3.12-xlib-0.33'
         whose name attribute is located at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:332:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-xlib-0.33'

         at /nix/store/yzkx7gx2cn73dh3c7zg5rvgkp3yli1cd-source/pkgs/stdenv/generic/make-derivation.nix:376:7:

          375|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          376|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          377|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

       error: nose-1.3.7 not supported for interpreter python3.12

Additional context
Seems related to the recent bump to Python 3.12 in python3Packages, affects a bunch of other packages.
Notify maintainers
@spinus @ysndr @oxalica
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ nix run nixpkgs#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.8, NixOS, 24.11 (Vicuna), 24.11.20240708.655a58a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Add a :+1: reaction to issues you find important.

fixed by https://github.com/NixOS/nixpkgs/pull/325872
Please test master before you open an issue.

authors: dotlambda panchoh


text:
logind: options ingored after nixos-rebuild switch --upgrade

Issue description
Closing the lids suspend the computer, and pressing poweroff power it off, even if I have:
[Login]
KillUserProcesses=no
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitchDocked=ignore

In my logind (
    logind = {
      lidSwitch = "ignore"; # newly added
      extraConfig = ''
        HandlePowerKey=ignore
        HandleSuspendKey=ignore
        HandleHibernateKey=ignore
        HandleLidSwitchDocked=ignore
    '';
    };

)
Has always worked before upgrading (systemd 234) and with it is inhibited correctly with
systemd-inhibit --what=handle-lid-switch sleep 1d
and
systemd-inhibit --what=handle-power-key sleep 1d
/etc/systemd/logind.conf has the right content
Technical details

system: "x86_64-linux"
host os: Linux 4.14.20, NixOS, 18.03pre129076.831ef4756e3 (Impala)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 1.11.16
channels(IITaudio): "nixos-18.03pre129076.831ef4756e3, telegram-cli-2016-03-23, machine-0.9.0, gitlab-runner-1.10.4, california-0.4.0, entr-3.6, tmuxp-1.2.2, keybase-20170209.17b641d, kbfs-20170209.d1db463, non-2016-12-07, go-sct-20160529-1d6b5e0, freecad-0.16, antimony-0.9.2, librecad-2.1.3, lemonbar-xft-unstable-2016-02-17, pencil-2.0.21, python3.5-qnotero-1.0.0, ruby-2.3.3, gimp-2.8.20, chromium-56.0.2924.87, nix-repl-1.11.7-2016-02-28, gparted-0.26.1, screen-4.5.1, vmpk-0.5.1, a2jmidid-8, platformio, teensyduino-1.6.12, teensy-loader-cli-2.1, blender-2.78c, unetbootin-613, mediainfo-0.7.91, xournal-0.4.8, zip-3.0, graphviz-2.40.1, ffmpeg-3.2.4, vlc-2.2.4, okular-16.12.2, pdfmod-0.9.1, green-pdfviewer-nightly-2014-04-22, android-sdk-25.2.3, android-studio-2.2.3.0, zathura-with-plugins-0.3.7, openjdk-8u121b13, android-ndk-r10e, virtualbox-5.1.14, R-3.3.2-wrapper, aspell-dict-en-2016.06.26-0"
channels(gitlab-runner): "nixpkgs-18.03pre117013.aebdc892d6"
channels(root): "nixos-18.03pre129076.831ef4756e3"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

I'm using i3wm and no power-manager that might inhibit systemd-logind

Seems to be fixed on the unstable channel

@knupfer ok thanks, I'll verify and close it if it's fixed for me, too. I'm having problems switching generation, might take a while

Ok I can confirm that now it's working


text:
Package request: package-version-server

Project description
package-version-server is language server for package.json
Metadata

homepage URL: https://github.com/zed-industries/package-version-server
source URL: https://github.com/zed-industries/package-version-server
license: open source.
platforms: all.
need: it's needed 'cause it allow that binary to execute in non FHS zed-editor environment, which otherwise is not possible. all it takes is this additional config:

{
  programs = {
    zed-editor = {
      userSettings = {
        lsp = {
          package-version-server = {
            binary = {
              path = "package-version-server";
            };
          };

working idea from a flake:
{
  outputs =
    { self, nixpkgs }:
    {
      devShell = {
        default = nixpkgs.lib.mkShell {
          buildInputs = [ nixpkgs.curl ];

          shellHook = ''
            # Download and extract package-version-server
            if [ ! -f ./package-version-server-x86_64-unknown-linux-gnu.tar.gz ]; then
              curl -L -o ./package-version-server-x86_64-unknown-linux-gnu.tar.gz \
                https://github.com/zed-industries/package-version-server/releases/download/v0.0.6/package-version-server-x86_64-unknown-linux-gnu.tar.gz
            fi

            # Extract the tar.gz if not already extracted
            if [ ! -d ./package-version-server ]; then
              tar -xvf ./package-version-server-x86_64-unknown-linux-gnu.tar.gz
            fi

            # Make the executable available in the PATH
            export PATH=$PATH:./package-version-server
          '';
        };
      };
    };

  inputs = {
    nixpkgs = {
      url = "github:NixOS/nixpkgs/nixos-unstable";
    };
  };

  description = "package-version-server";
}

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

PR: #353527

authors: FliegendeWurst id-adevz