aboutsummaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
authorGravatar Jon Allen <ylixir@gmail.com>2018-07-02 13:39:20 -0500
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-07-15 13:58:50 -0400
commit1f5d5e5314841e5379598a7fbeee5d6a91179839 (patch)
tree1657ce63c3f3f02ebd9f5fcb9796474fe1991493 /shell.nix
parent8ffeaec3aaa8b26a8d4512eab2a04b789d717044 (diff)
downloadqmk_firmware-1f5d5e5314841e5379598a7fbeee5d6a91179839.tar.gz
allow building with nix on darwin
add avrdude do dependency list
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell.nix b/shell.nix
index ce17dd41e..715414f96 100644
--- 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 ];