about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/teensy-loader-cli/default.nix
blob: 2975d64113e8bedbfaaf8561272533542e5920e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, libusb, fetchgit }:
let
  version = "2.1";
in
stdenv.mkDerivation {
  pname = "teensy-loader-cli";
  inherit version;
  src = fetchgit {
    url = "git://github.com/PaulStoffregen/teensy_loader_cli.git";
    rev = "f5b6d7aafda9a8b014b4bb08660833ca45c136d2";
    sha256 = "1a663bv3lvm7bsf2wcaj2c0vpmniak7w5hwix5qgz608bvm2v781";
  };

  buildInputs = [ libusb ];

  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";
    homepage = https://www.pjrc.com/teensy/;
    maintainers = with maintainers; [ the-kenny ];
    platforms = platforms.unix;
  };
}