2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, libusb, fetchgit }:
|
2015-09-16 15:22:41 +01:00
|
|
|
let
|
|
|
|
version = "2.1";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "teensy-loader-cli";
|
|
|
|
inherit version;
|
2015-09-16 15:22:41 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/PaulStoffregen/teensy_loader_cli.git";
|
2017-05-25 20:52:41 +01:00
|
|
|
rev = "f5b6d7aafda9a8b014b4bb08660833ca45c136d2";
|
|
|
|
sha256 = "1a663bv3lvm7bsf2wcaj2c0vpmniak7w5hwix5qgz608bvm2v781";
|
2015-09-16 15:22:41 +01:00
|
|
|
};
|
|
|
|
|
2018-10-20 21:36:50 +01:00
|
|
|
buildInputs = [ libusb ];
|
2015-09-16 15:22:41 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 teensy_loader_cli $out/bin/teensy-loader-cli
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl3;
|
|
|
|
description = "Firmware uploader for the Teensy microcontroller boards";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://www.pjrc.com/teensy/;
|
2015-09-16 15:22:41 +01:00
|
|
|
maintainers = with maintainers; [ the-kenny ];
|
2018-10-20 21:36:50 +01:00
|
|
|
platforms = platforms.unix;
|
2015-09-16 15:22:41 +01:00
|
|
|
};
|
|
|
|
}
|