gnu: make-crust-package: Memoize.

* gnu/packages/firmware.scm (make-crust-package): Use mlambda.

Change-Id: I2d916b96bc650f3731a69505e086cf8f8f470809
This commit is contained in:
Jean-Pierre De Jesus DIAZ 2024-01-19 14:54:44 +01:00 committed by Mathieu Othacehe
parent ae7da5cbf0
commit e5a00639aa
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -1197,7 +1197,8 @@ such as:
;; Adding debug symbols causes the size to exceed limits.
#~(delete "DEBUG=1" #$flags)))))))
(define (make-crust-package platform)
(define make-crust-package
(mlambda (platform)
(package
(name (string-append "crust-"
(string-replace-substring platform "_" "-")))
@ -1281,7 +1282,7 @@ dedicated always-on microprocessor called a System Control Processor (SCP).
Crust is designed to run on a specific SCP implementation, Allwinner's
AR100.")
;; Most files are dual-licensed "BSD-3 OR GPL2", a few are GPL2 only.
(license (list license:bsd-3 license:gpl2))))
(license (list license:bsd-3 license:gpl2)))))
(define-public crust-pinebook
(make-crust-package "pinebook"))