From bfae74099e2c6f5ba6c7180fe9bdf6aeca2d129c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 19 Apr 2026 15:21:54 +0200 Subject: [PATCH] fix "libxkbcommon-x11.so could not be loaded." --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 75850f5..c4cf8e9 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ , pango , pkg-config , xorg - , ... + , libxkbcommon }: rustPlatform.buildRustPackage { name = "wired-${version}"; @@ -55,6 +55,12 @@ install -Dm444 -t $out/etc/wired wired.ron wired_multilayout.ron ''; + preFixup = '' + patchelf $out/bin/wired \ + --add-needed libxkbcommon-x11.so \ + --add-rpath ${libxkbcommon}/lib + ''; + meta = { homepage = "https://github.com/Toqozz/wired-notify"; downloadPage = "https://github.com/Toqozz/wired-notify/releases";