diff options
| author | Roman Volosatovs <rvolosatovs@riseup.net> | 2017-11-26 17:07:37 +0100 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-11-26 17:55:24 -0500 |
| commit | 833ec84921569ce8b2351cb48dac368bd9648e35 (patch) | |
| tree | 4917f2ee0a1a5549c908a4aba6a6cf1c850c8373 /shell.nix | |
| parent | 53ad7375c7a6279cd289aa50b3fe7d6350f07eda (diff) | |
| download | qmk_firmware-833ec84921569ce8b2351cb48dac368bd9648e35.tar.gz qmk_firmware-833ec84921569ce8b2351cb48dac368bd9648e35.zip | |
shell.nix: add teensy loader
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | { pkgs ? import <nixpkgs> {} | 1 | { pkgs ? import <nixpkgs> {} |
| 2 | , avr ? true, arm ? true }: | 2 | , avr ? true, arm ? true, teensy ? true }: |
| 3 | 3 | ||
| 4 | with pkgs; | 4 | with pkgs; |
| 5 | let | 5 | let |
| @@ -19,7 +19,8 @@ stdenv.mkDerivation { | |||
| 19 | 19 | ||
| 20 | buildInputs = [ dfu-programmer dfu-util diffutils git ] | 20 | buildInputs = [ dfu-programmer dfu-util diffutils git ] |
| 21 | ++ lib.optional avr [ avrbinutils avrgcc avrlibc ] | 21 | ++ lib.optional avr [ avrbinutils avrgcc avrlibc ] |
| 22 | ++ lib.optional arm [ gcc-arm-embedded ]; | 22 | ++ lib.optional arm [ gcc-arm-embedded ] |
| 23 | ++ lib.optional teensy [ teensy-loader-cli ]; | ||
| 23 | 24 | ||
| 24 | CFLAGS = lib.optional avr avr_incflags; | 25 | CFLAGS = lib.optional avr avr_incflags; |
| 25 | ASFLAGS = lib.optional avr avr_incflags; | 26 | ASFLAGS = lib.optional avr avr_incflags; |
