#10 reform2-keyboard: add shell.nix

Merged
mntmn merged 1 commits from ehmry/reform:nix-shell into master 1 week ago
ehmry commented 1 week ago

Enter a shell with the AVR toolchain by running nix-shell in the reform2-keyboard directory.

Enter a shell with the AVR toolchain by running `nix-shell` in the reform2-keyboard directory.
ehmry commented 1 week ago
Poster

This is just to save the next nix user a few minutes figuring out how to get an AVR cross-compiler.

This is just to save the next nix user a few minutes figuring out how to get an AVR cross-compiler.
mntmn commented 1 week ago
Owner

Interesting and mysterious! OOC, how to use this file on NixOS?

Interesting and mysterious! OOC, how to use this file on NixOS?
ehmry commented 1 week ago
Poster

Just change to the firmware directory and run nix-shell, this will start a new Bash shell with a PATH that contains the flash utility and the toolchain. This is handy because the packages in the shell are not “installed”, there are fetched or built, but can be garbage collected later. https://nixos.org/nix/manual/#sec-nix-shell

Just change to the firmware directory and run `nix-shell`, this will start a new Bash shell with a PATH that contains the flash utility and the toolchain. This is handy because the packages in the shell are not "installed", there are fetched or built, but can be garbage collected later. https://nixos.org/nix/manual/#sec-nix-shell
mntmn commented 1 week ago
Owner

Oh that's cool. Thanks.

Oh that's cool. Thanks.
The pull request has been merged as d3131f724a.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.