nixpkgs/pkgs/tools/misc/qmk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.7 KiB
Nix
Raw Normal View History

{ lib
, python3
, fetchPypi
, pkgsCross
, avrdude
, dfu-programmer
, dfu-util
2023-10-15 08:43:05 +00:00
, wb32-dfu-updater
, gcc-arm-embedded
2022-09-07 16:08:52 +00:00
, gnumake
, teensy-loader-cli
}:
2021-04-02 17:00:18 +00:00
python3.pkgs.buildPythonApplication rec {
2021-04-02 17:00:18 +00:00
pname = "qmk";
version = "1.1.2";
format = "pyproject";
2021-04-02 17:00:18 +00:00
src = fetchPypi {
2021-04-02 17:00:18 +00:00
inherit pname version;
hash = "sha256-+HH4jxoMoxujGgCdcWQX5GvFOKT4347eaoAckHbCKZg=";
2021-04-02 17:00:18 +00:00
};
nativeBuildInputs = with python3.pkgs; [
setuptools
2021-04-02 17:00:18 +00:00
];
propagatedBuildInputs = with python3.pkgs; [
2022-09-07 16:08:52 +00:00
dotty-dict
2021-06-23 03:36:20 +00:00
hid
hjson
jsonschema
2021-04-02 17:00:18 +00:00
milc
2021-06-23 03:36:20 +00:00
pygments
2022-09-07 16:08:52 +00:00
pyserial
2021-06-23 03:36:20 +00:00
pyusb
2022-06-05 16:15:25 +00:00
pillow
] ++ [ # Binaries need to be in the path so this is in propagatedBuildInputs
avrdude
dfu-programmer
dfu-util
2023-10-15 08:43:05 +00:00
wb32-dfu-updater
teensy-loader-cli
gcc-arm-embedded
2022-09-07 16:08:52 +00:00
gnumake
pkgsCross.avr.buildPackages.binutils
pkgsCross.avr.buildPackages.binutils.bintools
pkgsCross.avr.buildPackages.gcc8
pkgsCross.avr.libcCross
2021-04-02 17:00:18 +00:00
];
# no tests implemented
doCheck = false;
meta = with lib; {
homepage = "https://github.com/qmk/qmk_cli";
2021-06-23 03:36:20 +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-02 17:00:18 +00:00
license = licenses.mit;
maintainers = with maintainers; [ bhipple babariviere ekleog ];
2023-11-27 01:17:53 +00:00
mainProgram = "qmk";
2021-04-02 17:00:18 +00:00
};
}