summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCayetano Santos <csantosb@inventati.org>2025-09-17 16:15:57 +0200
committerAndreas Enge <andreas@enge.fr>2025-09-17 16:23:03 +0200
commit332d125d0044f3431fd078055e869e6c0e86ea54 (patch)
treef8e52b942281bd3a4d63613f01ae49c9c4d5b603 /gnu
parent152450668f02e5bb3f7dfaf11db85f00c84c9200 (diff)
gnu: teensy-loader-cli: Improve style.
* gnu/packages/flashing-tools.scm (teensy-loader-cli): Apply style. Change-Id: Ieacd62b7f71ec7bbe12f3d177805f6606e7586d0 Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/flashing-tools.scm23
1 files changed, 14 insertions, 9 deletions
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index 68d04a131ba..375a18df3a5 100644
--- a/gnu/packages/flashing-tools.scm
+++ b/gnu/packages/flashing-tools.scm
@@ -247,7 +247,8 @@ firmware from it.")
(uri (git-reference
(url "https://github.com/PaulStoffregen/teensy_loader_cli")
(commit version)))
- (sha256 (base32 "12n8ifz4gph1anhwd8if3j1kw0wc3yxf48abbyxl8071l9vj3m0b"))
+ (sha256
+ (base32 "12n8ifz4gph1anhwd8if3j1kw0wc3yxf48abbyxl8071l9vj3m0b"))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet
@@ -259,14 +260,18 @@ firmware from it.")
(arguments
(list
#:tests? #f ;; Makefile has no test target
- #:make-flags #~(list "CC=gcc" (string-append "PREFIX=" #$output))
- #:phases #~(modify-phases %standard-phases
- (delete 'configure)
- (replace 'install
- (lambda _
- (install-file "teensy_loader_cli"
- (string-append #$output "/bin")))))))
- (inputs (list libusb-compat)) ;only compatible with libusb 0.1
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "PREFIX=" #$output))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda _
+ (install-file "teensy_loader_cli"
+ (string-append #$output "/bin")))))))
+ (inputs
+ (list libusb-compat)) ;only compatible with libusb 0.1
(synopsis "Command line firmware uploader for Teensy development boards")
(description
"The Teensy loader program communicates with your Teensy board when the