fix: add xorg.libxkbfile dependency to resolve native-keymap runtime error #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds
xorg.libxkbfileto the FHS environment dependencies.It appears that Antigravity utilizes the
native-keymapElectron module, which depends onlibxkbfile. This is evidenced by the runtime error logs observed when the library is missing.Context & Bug Report
I ran the original flake using
nix run github:jacopone/antigravity-nix.Behavior:
This error indicates that the
native-keymapmodule failed to load due to the missinglibxkbfile.soshared library. This suggests that keyboard mapping functionality (provided by this module) might be impaired, although I did not explicitly test the mapping behavior itself.Solution
Added
xorg.libxkbfiletopackage.nixin thetargetPkgslist.Verification
nix build .successfully../result/bin/antigravity.native-keymaperrors), confirming that the dependency issue is resolved.Appendix: System Configuration
The issue was reproduced and fixed on the following system:
🇨🇳 中文说明 (Chinese Translation)
摘要
本 PR 向 FHS 环境依赖中添加了
xorg.libxkbfile。从报错日志来看,Antigravity 似乎使用了
native-keymapElectron 模块,而该模块依赖此库。背景与排查
我执行
nix run github:jacopone/antigravity-nix启动应用。现象:
Error: Cannot find module './build/Debug/keymapping'...。这表明
native-keymap模块因缺少libxkbfile.so而加载失败。这可能导致键盘映射功能失效(尽管我没有专门验证映射功能本身,只观察到报错)。验证
package.nix添加依赖后,重新构建并运行。附录:系统配置