Merge pull request #261182 from liketechnik/init-wb32-dfu-updater

qmk: add wb32 flash tool
This commit is contained in:
Weijia Wang 2023-10-18 22:21:16 +02:00 committed by GitHub
commit 964a525d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -10042,6 +10042,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";

View file

@ -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;
};
})

View file

@ -5,6 +5,7 @@
, avrdude
, dfu-programmer
, dfu-util
, wb32-dfu-updater
, gcc-arm-embedded
, gnumake
, teensy-loader-cli
@ -38,6 +39,7 @@ python3.pkgs.buildPythonApplication rec {
avrdude
dfu-programmer
dfu-util
wb32-dfu-updater
teensy-loader-cli
gcc-arm-embedded
gnumake