nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 46 lines 988 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, go-md2man 5, installShellFiles 6, libusb-compat-0_1 7}: 8 9stdenv.mkDerivation rec { 10 pname = "teensy-loader-cli"; 11 version = "2.1+unstable=2021-04-10"; 12 13 src = fetchFromGitHub { 14 owner = "PaulStoffregen"; 15 repo = "teensy_loader_cli"; 16 rev = "9dbbfa3b367b6c37e91e8a42dae3c6edfceccc4d"; 17 sha256 = "lQ1XtaWPr6nvE8NArD1980QVOH6NggO3FlfsntUjY7s="; 18 }; 19 20 nativeBuildInputs = [ 21 go-md2man 22 installShellFiles 23 ]; 24 25 buildInputs = [ 26 libusb-compat-0_1 27 ]; 28 29 installPhase = '' 30 runHook preInstall 31 32 install -Dm555 teensy_loader_cli $out/bin/teensy-loader-cli 33 install -Dm444 -t $out/share/doc/${pname} *.md *.txt 34 go-md2man -in README.md -out ${pname}.1 35 installManPage *.1 36 37 runHook postInstall 38 ''; 39 40 meta = with lib; { 41 description = "Firmware uploader for the Teensy microcontroller boards"; 42 homepage = "https://www.pjrc.com/teensy/"; 43 license = licenses.gpl3Only; 44 platforms = platforms.unix; 45 }; 46}