Skip to content

Commit

Permalink
allow building with nix on darwin
Browse files Browse the repository at this point in the history
add avrdude do dependency list
  • Loading branch information
ylixir authored and jackhumbert committed Jul 15, 2018
1 parent 8ffeaec commit 1f5d5e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ pkgs ? import <nixpkgs> {}
# dfu-programmer doesn't have darwin on it's list of supported platforms
{ pkgs ? import <nixpkgs> { config = { allowUnsupportedSystem = true; }; }
, avr ? true, arm ? true, teensy ? true }:

with pkgs;
Expand All @@ -18,7 +19,7 @@ stdenv.mkDerivation {
name = "qmk-firmware";

buildInputs = [ dfu-programmer dfu-util diffutils git ]
++ lib.optional avr [ avrbinutils avrgcc avrlibc ]
++ lib.optional avr [ avrbinutils avrgcc avrlibc avrdude ]
++ lib.optional arm [ gcc-arm-embedded ]
++ lib.optional teensy [ teensy-loader-cli ];

Expand Down

0 comments on commit 1f5d5e5

Please sign in to comment.