2020-04-28 04:29:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, go-md2man, installShellFiles, libusb-compat-0_1 }:
|
2020-03-02 09:48:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "teensy-loader-cli";
|
2020-03-02 09:48:27 +00:00
|
|
|
version = "2.1.20191110";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PaulStoffregen";
|
|
|
|
repo = "teensy_loader_cli";
|
|
|
|
rev = "e98b5065cdb9f04aa4dde3f2e6e6e6f12dd97592";
|
|
|
|
sha256 = "1yx8vsh6b29pqr4zb6sx47429i9x51hj9psn8zksfz75j5ivfd5i";
|
2015-09-16 15:22:41 +01:00
|
|
|
};
|
|
|
|
|
2020-04-28 04:29:39 +01:00
|
|
|
buildInputs = [ libusb-compat-0_1 ];
|
2015-09-16 15:22:41 +01:00
|
|
|
|
2020-03-02 09:48:27 +00:00
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
|
2015-09-16 15:22:41 +01:00
|
|
|
installPhase = ''
|
2020-03-02 09:48:27 +00:00
|
|
|
install -Dm555 teensy_loader_cli $out/bin/teensy-loader-cli
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} *.md *.txt
|
|
|
|
go-md2man -in README.md -out ${pname}.1
|
|
|
|
installManPage *.1
|
2015-09-16 15:22:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Firmware uploader for the Teensy microcontroller boards";
|
2020-03-02 09:48:27 +00:00
|
|
|
homepage = "https://www.pjrc.com/teensy/";
|
|
|
|
license = licenses.gpl3;
|
2018-10-20 21:36:50 +01:00
|
|
|
platforms = platforms.unix;
|
2015-09-16 15:22:41 +01:00
|
|
|
};
|
|
|
|
}
|