3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/misc/qmk_firmware/default.nix
Matthew Bauer a33d122be6 qmk_firmware: init at 0.6.144
A convenient way to test embedded projects
2018-10-30 13:31:56 -05:00

28 lines
620 B
Nix

{ stdenv, fetchFromGitHub
, avrgcc, avrbinutils
, gcc-arm-embedded, binutils-arm-embedded
, teensy-loader-cli, dfu-programmer, dfu-util }:
let version = "0.6.144";
in stdenv.mkDerivation {
name = "qmk_firmware-${version}";
src = fetchFromGitHub {
owner = "qmk";
repo = "qmk_firmware";
rev = version;
sha256 = "0m71f9w32ksqjkrwhqwhr74q5v3pr38bihjyb9ks0k5id0inhrjn";
fetchSubmodules = true;
};
buildFlags = "all:default";
NIX_CFLAGS_COMPILE = "-Wno-error";
nativeBuildInputs = [
avrgcc
avrbinutils
gcc-arm-embedded
teensy-loader-cli
dfu-programmer
dfu-util
];
}