[request] Environment for QMK
AndersonTorres opened this issue · comments
Copy-pasting NixOS/nixpkgs#129065:
QMK is already packaged into Nixpkgs (#127863). However, it does not work standalone - it is a tool made to manipulate QMK firmware source tree.
Therefore, its best use case is inside a well-crafted shell.nix file.
Reference: NixOS/nixpkgs#134530
If it is packaged, can you not just use nix-shell <nixpkgs> -A qmk
to get a build environment?
If it is packaged, can you not just use
nix-shell <nixpkgs> -A qmk
to get a build environment?
It is a bit complicated to explain.
QMK, as packaged by Nixpkgs, is mostly useful for download and manipulate the QMK Firmware repo. However, the other functionalities, especially compile and burn the firmware to a keyboard, require extra packages like cross-compilers and firmware loaders.
The "expected workflow" for QMK is something like:
- Download the qmk firmware git repo - here you use
qmk
tool - Edit the source code to match your needs (alternative keyboard, blinking etc.) - here you use emacs or mousepad :)
- Compile the firmware - here you can use
qmk
tool if the AVR cross-compiler is found on$PATH
- Burn it to the keyboard - here you can use
qmk
tool if avrdude is found on$PATH
Ok. Pull requests are welcome. I will no likely add this as I don't use this.