Merge pull request #81499 from NixOS/u/teensy

teensy-loader-cli: 2.1 -> 2.1.20191110
This commit is contained in:
Peter Hoeg 2020-03-10 20:55:19 +08:00 committed by GitHub
commit 7b87ac3e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,31 @@
{ stdenv, libusb, fetchgit }: { stdenv, fetchFromGitHub, go-md2man, installShellFiles, libusb }:
let
version = "2.1"; stdenv.mkDerivation rec {
in
stdenv.mkDerivation {
pname = "teensy-loader-cli"; pname = "teensy-loader-cli";
inherit version; version = "2.1.20191110";
src = fetchgit {
url = "git://github.com/PaulStoffregen/teensy_loader_cli.git"; src = fetchFromGitHub {
rev = "f5b6d7aafda9a8b014b4bb08660833ca45c136d2"; owner = "PaulStoffregen";
sha256 = "1a663bv3lvm7bsf2wcaj2c0vpmniak7w5hwix5qgz608bvm2v781"; repo = "teensy_loader_cli";
rev = "e98b5065cdb9f04aa4dde3f2e6e6e6f12dd97592";
sha256 = "1yx8vsh6b29pqr4zb6sx47429i9x51hj9psn8zksfz75j5ivfd5i";
}; };
buildInputs = [ libusb ]; buildInputs = [ libusb ];
nativeBuildInputs = [ go-md2man installShellFiles ];
installPhase = '' installPhase = ''
install -Dm755 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
go-md2man -in README.md -out ${pname}.1
installManPage *.1
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
license = licenses.gpl3;
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;
maintainers = with maintainers; [ the-kenny ]; maintainers = with maintainers; [ the-kenny ];
platforms = platforms.unix; platforms = platforms.unix;
}; };