mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 10:24:15 +00:00
28 lines
620 B
Nix
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
|
||
|
];
|
||
|
}
|