]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
allow building with nix on darwin
authorJon Allen <ylixir@gmail.com>
Mon, 2 Jul 2018 18:39:20 +0000 (13:39 -0500)
committerJack Humbert <jack.humb@gmail.com>
Sun, 15 Jul 2018 17:58:50 +0000 (13:58 -0400)
add avrdude do dependency list

shell.nix

index ce17dd41e8d6d1ebd8101eb5a0b343cb6f3c013f..715414f96af31ef4ff94b562ee6b0839b9a98543 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -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;
@@ -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 ];