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";