2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-01-22 01:22:15 +00:00
|
|
|
, pkgsCross
|
|
|
|
, avrdude
|
|
|
|
, dfu-programmer
|
|
|
|
, dfu-util
|
2023-10-19 13:55:26 +00:00
|
|
|
, wb32-dfu-updater
|
2022-01-22 01:22:15 +00:00
|
|
|
, gcc-arm-embedded
|
2022-09-11 15:47:08 +00:00
|
|
|
, gnumake
|
2022-01-22 01:22:15 +00:00
|
|
|
, teensy-loader-cli
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "qmk";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.5";
|
2023-02-09 11:40:11 +00:00
|
|
|
format = "pyproject";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-04-05 15:23:46 +00:00
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Lv48dSIwxrokuHGcO26FpWRL+PfQ3SN3V+2pt7fmCxE=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2023-02-09 11:40:11 +00:00
|
|
|
setuptools
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-09-11 15:47:08 +00:00
|
|
|
dotty-dict
|
2021-07-03 03:11:41 +00:00
|
|
|
hid
|
|
|
|
hjson
|
|
|
|
jsonschema
|
2021-04-05 15:23:46 +00:00
|
|
|
milc
|
2021-07-03 03:11:41 +00:00
|
|
|
pygments
|
2022-09-11 15:47:08 +00:00
|
|
|
pyserial
|
2021-07-03 03:11:41 +00:00
|
|
|
pyusb
|
2022-06-16 17:23:12 +00:00
|
|
|
pillow
|
2022-01-22 01:22:15 +00:00
|
|
|
] ++ [ # Binaries need to be in the path so this is in propagatedBuildInputs
|
|
|
|
avrdude
|
|
|
|
dfu-programmer
|
|
|
|
dfu-util
|
2023-10-19 13:55:26 +00:00
|
|
|
wb32-dfu-updater
|
2022-01-22 01:22:15 +00:00
|
|
|
teensy-loader-cli
|
|
|
|
gcc-arm-embedded
|
2022-09-11 15:47:08 +00:00
|
|
|
gnumake
|
2022-01-22 01:22:15 +00:00
|
|
|
pkgsCross.avr.buildPackages.binutils
|
|
|
|
pkgsCross.avr.buildPackages.binutils.bintools
|
|
|
|
pkgsCross.avr.buildPackages.gcc8
|
|
|
|
pkgsCross.avr.libcCross
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/qmk/qmk_cli";
|
2021-07-03 03:11:41 +00:00
|
|
|
description = "A program to help users work with QMK Firmware";
|
|
|
|
longDescription = ''
|
|
|
|
qmk_cli is a companion tool to QMK firmware. With it, you can:
|
|
|
|
|
|
|
|
- Interact with your qmk_firmware tree from any location
|
|
|
|
- Use qmk clone to pull down anyone's qmk_firmware fork
|
|
|
|
- Setup and work with your build environment:
|
|
|
|
- qmk setup
|
|
|
|
- qmk doctor
|
|
|
|
- qmk compile
|
|
|
|
- qmk console
|
|
|
|
- qmk flash
|
|
|
|
- qmk lint
|
|
|
|
- ... and many more!
|
|
|
|
'';
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ bhipple ekleog ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "qmk";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|