Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Nix derivation for working with tmk_keyboard #619

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

panchaea
Copy link

@panchaea panchaea commented Jul 6, 2019

Background: Nix is a package manager which, among other things, allows for packages to be installed in a single shell's environment. It's the package manager of the NixOS Linux distribution, but also sees some use outside of that ecosystem. Generally, Nix users avoid installing build tools globally and instead prefer to spawn temporary shells which contain the tools they need for a particular project.

This patch adds a Nix derivation (basically a package description) which makes the avr-gcc toolchain and dfu-programmer available on the user's $PATH. It allows one to run nix-shell and proceed to immediately begin building keyboard firmware, essentially skipping the "Download & Install" step of the build guide.

I based this off the Nix derivation used by qmk_firmware. It works well enough to install new firmware to my HHKB Pro JP with the USB controller, but I did not test it for any other models. It also doesn't support other flashing methods besides dfu-programmer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant