Merge pull request #132913 from jtojnar/teensy41-loader
teensy-loader-cli: 2.1.20191110 → 2.1+unstable=2021-04-10
This commit is contained in:
commit
e91d8ff7ec
|
@ -1,31 +1,46 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, go-md2man, installShellFiles, libusb-compat-0_1 }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, go-md2man
|
||||||
|
, installShellFiles
|
||||||
|
, libusb-compat-0_1
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "teensy-loader-cli";
|
pname = "teensy-loader-cli";
|
||||||
version = "2.1.20191110";
|
version = "2.1+unstable=2021-04-10";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PaulStoffregen";
|
owner = "PaulStoffregen";
|
||||||
repo = "teensy_loader_cli";
|
repo = "teensy_loader_cli";
|
||||||
rev = "e98b5065cdb9f04aa4dde3f2e6e6e6f12dd97592";
|
rev = "9dbbfa3b367b6c37e91e8a42dae3c6edfceccc4d";
|
||||||
sha256 = "1yx8vsh6b29pqr4zb6sx47429i9x51hj9psn8zksfz75j5ivfd5i";
|
sha256 = "lQ1XtaWPr6nvE8NArD1980QVOH6NggO3FlfsntUjY7s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libusb-compat-0_1 ];
|
nativeBuildInputs = [
|
||||||
|
go-md2man
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ go-md2man installShellFiles ];
|
buildInputs = [
|
||||||
|
libusb-compat-0_1
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm555 teensy_loader_cli $out/bin/teensy-loader-cli
|
install -Dm555 teensy_loader_cli $out/bin/teensy-loader-cli
|
||||||
install -Dm444 -t $out/share/doc/${pname} *.md *.txt
|
install -Dm444 -t $out/share/doc/${pname} *.md *.txt
|
||||||
go-md2man -in README.md -out ${pname}.1
|
go-md2man -in README.md -out ${pname}.1
|
||||||
installManPage *.1
|
installManPage *.1
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Firmware uploader for the Teensy microcontroller boards";
|
description = "Firmware uploader for the Teensy microcontroller boards";
|
||||||
homepage = "https://www.pjrc.com/teensy/";
|
homepage = "https://www.pjrc.com/teensy/";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue