diff options
| author | Jon Allen <ylixir@gmail.com> | 2018-07-02 13:39:20 -0500 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-07-15 13:58:50 -0400 |
| commit | 1f5d5e5314841e5379598a7fbeee5d6a91179839 (patch) | |
| tree | 1657ce63c3f3f02ebd9f5fcb9796474fe1991493 | |
| parent | 8ffeaec3aaa8b26a8d4512eab2a04b789d717044 (diff) | |
| download | qmk_firmware-1f5d5e5314841e5379598a7fbeee5d6a91179839.tar.gz qmk_firmware-1f5d5e5314841e5379598a7fbeee5d6a91179839.zip | |
allow building with nix on darwin
add avrdude do dependency list
| -rw-r--r-- | shell.nix | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,4 +1,5 @@ | |||
| 1 | { pkgs ? import <nixpkgs> {} | 1 | # dfu-programmer doesn't have darwin on it's list of supported platforms |
| 2 | { pkgs ? import <nixpkgs> { config = { allowUnsupportedSystem = true; }; } | ||
| 2 | , avr ? true, arm ? true, teensy ? true }: | 3 | , avr ? true, arm ? true, teensy ? true }: |
| 3 | 4 | ||
| 4 | with pkgs; | 5 | with pkgs; |
| @@ -18,7 +19,7 @@ stdenv.mkDerivation { | |||
| 18 | name = "qmk-firmware"; | 19 | name = "qmk-firmware"; |
| 19 | 20 | ||
| 20 | buildInputs = [ dfu-programmer dfu-util diffutils git ] | 21 | buildInputs = [ dfu-programmer dfu-util diffutils git ] |
| 21 | ++ lib.optional avr [ avrbinutils avrgcc avrlibc ] | 22 | ++ lib.optional avr [ avrbinutils avrgcc avrlibc avrdude ] |
| 22 | ++ lib.optional arm [ gcc-arm-embedded ] | 23 | ++ lib.optional arm [ gcc-arm-embedded ] |
| 23 | ++ lib.optional teensy [ teensy-loader-cli ]; | 24 | ++ lib.optional teensy [ teensy-loader-cli ]; |
| 24 | 25 | ||
