Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
go-md2man,
|
|
installShellFiles,
|
|
libusb-compat-0_1,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "teensy-loader-cli";
|
|
version = "2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PaulStoffregen";
|
|
repo = "teensy_loader_cli";
|
|
rev = finalAttrs.version;
|
|
sha256 = "sha256-NYqCNWO/nHEuNc9eOzsUqJEHJtZ3XaNz1VYNbeuqEk8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
go-md2man
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
libusb-compat-0_1
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 teensy_loader_cli $out/bin/teensy-loader-cli
|
|
install -Dm444 -t $out/share/doc/teensy-loader-cli *.md *.txt
|
|
go-md2man -in README.md -out teensy-loader-cli.1
|
|
installManPage *.1
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Firmware uploader for the Teensy microcontroller boards";
|
|
mainProgram = "teensy-loader-cli";
|
|
homepage = "https://www.pjrc.com/teensy/";
|
|
license = licenses.gpl3Only;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|