Skip to content

Commit

Permalink
Merge pull request #261182 from liketechnik/init-wb32-dfu-updater
Browse files Browse the repository at this point in the history
qmk: add wb32 flash tool
  • Loading branch information
wegank authored Oct 18, 2023
2 parents ef21b9f + c3528ad commit 964a525
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10042,6 +10042,17 @@
githubId = 3696783;
name = "Leroy Hopson";
};
liketechnik = {
name = "Florian Warzecha";

email = "[email protected]";
github = "liketechnik";
githubId = 24209689;

keys = [{
fingerprint = "92D8 A09D 03DD B774 AABD 53B9 E136 2F07 D750 DB5C";
}];
};
lillycham = {
email = "[email protected]";
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

0 comments on commit 964a525

Please sign in to comment.