2023-10-18 17:10:13 +02:00
|
|
|
{ lib
|
2023-10-15 10:41:27 +02:00
|
|
|
, 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;
|
2023-10-18 17:10:13 +02:00
|
|
|
hash = "sha256-DKsDVO00JFhR9hIZksFVJLRwC6PF9LCRpf++QywFO2w=";
|
2023-10-15 10:41:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
})
|