Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qmk: add wb32 flash tool #261182

Merged
merged 4 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10008,6 +10008,17 @@
githubId = 3696783;
name = "Leroy Hopson";
};
liketechnik = {
name = "Florian Warzecha";

email = "liketechnik@disroot.org";
github = "liketechnik";
githubId = 24209689;

keys = [{
fingerprint = "92D8 A09D 03DD B774 AABD 53B9 E136 2F07 D750 DB5C";
}];
};
lillycham = {
email = "lillycat332@gmail.com";
github = "lillycat332";
Expand Down
33 changes: 33 additions & 0 deletions pkgs/by-name/wb/wb32-dfu-updater/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libusb1
}:

stdenv.mkDerivation (finalAttrs: {
pname = "wb32-dfu-updater";
version = "1.0.0";

src = fetchFromGitHub {
owner = "WestberryTech";
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-DKsDVO00JFhR9hIZksFVJLRwC6PF9LCRpf++QywFO2w=";
};

nativeBuildInputs = [ cmake ];
buildInputs = [ libusb1 ];

meta = with lib; {
description = "USB programmer for downloading and uploading firmware to/from USB devices.";
longDescription = ''
wb32-dfu-updater is a host tool used to download and upload firmware to/from WB32 MCU via USB. (wb32-dfu-updater_cli is the command line version).
'';
homepage = "https://github.com/WestberryTech/wb32-dfu-updater";
license = licenses.asl20;
maintainers = [ maintainers.liketechnik ];
mainProgram = "wb32-dfu-updater_cli";
platforms = platforms.all;
};
})
2 changes: 2 additions & 0 deletions pkgs/tools/misc/qmk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, avrdude
, dfu-programmer
, dfu-util
, wb32-dfu-updater
, gcc-arm-embedded
, gnumake
, teensy-loader-cli
Expand Down Expand Up @@ -38,6 +39,7 @@ python3.pkgs.buildPythonApplication rec {
avrdude
dfu-programmer
dfu-util
wb32-dfu-updater
teensy-loader-cli
gcc-arm-embedded
gnumake
Expand Down