gnu: fiano: Build more commands.

* gnu/packages/admin.scm (fiano): Build more commands and enable more
tests.
[arguments] <unpack-path>: Remove as redundunt.
[phases] {build}: Include "fittool".
{check}: Include "pkg/intel" and "pkg/amd".
{install}: Include "fittool".
[inputs]: Add go-github-com-fatih-camelcase,
go-github-com-stretchr-testify, go-github-com-tjfoc-gmsm,
go-github-com-klauspost-compress, go-github-com-jedib0t-go-pretty-v6<
go-github-com-xaionaro-go-bytesextra, and go-github-com-xaionaro-gosrc.

Change-Id: I510e00f8f73e29b652020596b5eeae1591966c38
This commit is contained in:
Sharlatan Hellseher 2025-01-25 08:28:48 +00:00
parent 93f3bf0a16
commit 4e7960bfbe
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -150,6 +150,7 @@
#:use-module (gnu packages golang-build) #:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check) #:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-web) #:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz) #:use-module (gnu packages golang-xyz)
#:use-module (gnu packages groff) #:use-module (gnu packages groff)
@ -5512,7 +5513,6 @@ disk utilization, priority, username, state, and exit code.")
(list (list
#:install-source? #f #:install-source? #f
#:import-path "github.com/linuxboot/fiano" #:import-path "github.com/linuxboot/fiano"
#:unpack-path "github.com/linuxboot/fiano"
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
;; XXX: Replace this part when it's implemented in go-build-system. ;; XXX: Replace this part when it's implemented in go-build-system.
@ -5524,10 +5524,7 @@ disk utilization, priority, username, state, and exit code.")
(string-append import-path "/cmds/" cmd))) (string-append import-path "/cmds/" cmd)))
(list "cbfs" (list "cbfs"
"create-ffs" "create-ffs"
;; TODO: Not packed yet in guix, long jorney: "fittool"
;; - github.com/tjfoc/gmsm
;;
;; "fittool"
"fmap" "fmap"
"fspinfo" "fspinfo"
"glzma" "glzma"
@ -5542,20 +5539,14 @@ disk utilization, priority, username, state, and exit code.")
(invoke "go" "test" "-v" (invoke "go" "test" "-v"
(string-append import-path dir "/..."))) (string-append import-path dir "/...")))
(list "/pkg/bytes" (list "/pkg/bytes"
;; TODO: Not packed yet in Guix, long jorney: "/pkg/amd"
;; - github.com/jedib0t
;;
;; "/pkg/amd"
"/pkg/cbfs" "/pkg/cbfs"
"/pkg/compression" "/pkg/compression"
"/pkg/fmap" "/pkg/fmap"
"/pkg/fsp" "/pkg/fsp"
"/pkg/guid" "/pkg/guid"
"/pkg/guid2english" "/pkg/guid2english"
;; TODO: Not packed yet in Guix, long jorney: "/pkg/intel"
;; - github.com/tjfoc/gmsm
;;
;; "/pkg/intel"
"/pkg/knownguids" "/pkg/knownguids"
"/pkg/log" "/pkg/log"
"/pkg/uefi" "/pkg/uefi"
@ -5582,7 +5573,7 @@ disk utilization, priority, username, state, and exit code.")
(install-file cmd bindir)) (install-file cmd bindir))
(list "cbfs" (list "cbfs"
"create-ffs" "create-ffs"
;; "fittool" "fittool"
"fmap" "fmap"
"fspinfo" "fspinfo"
"glzma" "glzma"
@ -5591,11 +5582,18 @@ disk utilization, priority, username, state, and exit code.")
"utk")))))))) "utk"))))))))
(inputs (inputs
(list go-github-com-dustin-go-humanize (list go-github-com-dustin-go-humanize
go-github-com-fatih-camelcase
go-github-com-hashicorp-go-multierror go-github-com-hashicorp-go-multierror
go-github-com-jedib0t-go-pretty-v6
go-github-com-jessevdk-go-flags go-github-com-jessevdk-go-flags
go-github-com-klauspost-compress
go-github-com-pierrec-lz4 go-github-com-pierrec-lz4
go-github-com-spf13-pflag go-github-com-spf13-pflag
go-github-com-stretchr-testify
go-github-com-tjfoc-gmsm
go-github-com-ulikunitz-xz go-github-com-ulikunitz-xz
go-github-com-xaionaro-go-bytesextra
go-github-com-xaionaro-gosrc
go-golang-org-x-text)) go-golang-org-x-text))
(home-page "https://github.com/linuxboot/fiano") (home-page "https://github.com/linuxboot/fiano")
(synopsis "UEFI image editor") (synopsis "UEFI image editor")