diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/admin.scm | 96 |
1 files changed, 15 insertions, 81 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d805a75d208..4518f904ce3 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm | |||
| @@ -5761,94 +5761,27 @@ disk utilization, priority, username, state, and exit code.") | |||
| 5761 | `((release-monitoring-url . "https://www.atoptool.nl/downloadatop.php"))) | 5761 | `((release-monitoring-url . "https://www.atoptool.nl/downloadatop.php"))) |
| 5762 | (license license:gpl2+))) | 5762 | (license license:gpl2+))) |
| 5763 | 5763 | ||
| 5764 | ;; TODO: Pack u-root for: forth, and some tests. | ||
| 5765 | (define-public fiano | 5764 | (define-public fiano |
| 5766 | (package | 5765 | (package |
| 5767 | (name "fiano") | 5766 | (name "fiano") |
| 5768 | ;; The versioning count has been changed since commit <2021-12-01> | 5767 | ;; The versioning count has been changed since commit <2021-12-01> |
| 5769 | ;; 1eb599564549691603589219c2be34f966a32ff1. | 5768 | ;; 1eb599564549691603589219c2be34f966a32ff1. |
| 5770 | (version "1.2.0") | 5769 | (version "1.2.0") |
| 5771 | (source (origin | 5770 | (source |
| 5772 | (method git-fetch) | 5771 | (origin |
| 5773 | (uri (git-reference | 5772 | (method git-fetch) |
| 5774 | (url "https://github.com/linuxboot/fiano.git") | 5773 | (uri (git-reference |
| 5775 | (commit (string-append "v" version)))) | 5774 | (url "https://github.com/linuxboot/fiano") |
| 5776 | (file-name (git-file-name name version)) | 5775 | (commit (string-append "v" version)))) |
| 5777 | (sha256 | 5776 | (file-name (git-file-name name version)) |
| 5778 | (base32 | 5777 | (sha256 |
| 5779 | "0s5fx4lhgb68qbx4ql34rcm678qdf0c4xl97bgc8dx9xwwqifza1")))) | 5778 | (base32 "0s5fx4lhgb68qbx4ql34rcm678qdf0c4xl97bgc8dx9xwwqifza1")))) |
| 5780 | (build-system go-build-system) | 5779 | (build-system go-build-system) |
| 5781 | (arguments | 5780 | (arguments |
| 5782 | (list | 5781 | (list |
| 5783 | #:install-source? #f | 5782 | #:install-source? #f |
| 5784 | #:import-path "github.com/linuxboot/fiano" | 5783 | #:import-path "github.com/linuxboot/fiano/cmds/..." |
| 5785 | #:phases | 5784 | #:unpack-path "github.com/linuxboot/fiano")) |
| 5786 | #~(modify-phases %standard-phases | ||
| 5787 | ;; XXX: Replace this part when it's implemented in go-build-system. | ||
| 5788 | (replace 'build | ||
| 5789 | (lambda* (#:key import-path #:allow-other-keys) | ||
| 5790 | (for-each | ||
| 5791 | (lambda (cmd) | ||
| 5792 | (invoke "go" "build" "-v" "-x" "-ldflags=-s -w" "-trimpath" | ||
| 5793 | (string-append import-path "/cmds/" cmd))) | ||
| 5794 | (list "cbfs" | ||
| 5795 | "create-ffs" | ||
| 5796 | "fittool" | ||
| 5797 | "fmap" | ||
| 5798 | "fspinfo" | ||
| 5799 | "glzma" | ||
| 5800 | "guid2english" | ||
| 5801 | "microcode" | ||
| 5802 | "utk")))) | ||
| 5803 | (replace 'check | ||
| 5804 | (lambda* (#:key import-path tests? #:allow-other-keys) | ||
| 5805 | (when tests? | ||
| 5806 | (for-each | ||
| 5807 | (lambda (dir) | ||
| 5808 | (invoke "go" "test" "-v" | ||
| 5809 | (string-append import-path dir "/..."))) | ||
| 5810 | (list "/pkg/bytes" | ||
| 5811 | "/pkg/amd" | ||
| 5812 | "/pkg/cbfs" | ||
| 5813 | "/pkg/compression" | ||
| 5814 | "/pkg/fmap" | ||
| 5815 | "/pkg/fsp" | ||
| 5816 | "/pkg/guid" | ||
| 5817 | "/pkg/guid2english" | ||
| 5818 | "/pkg/intel" | ||
| 5819 | "/pkg/knownguids" | ||
| 5820 | "/pkg/log" | ||
| 5821 | "/pkg/uefi" | ||
| 5822 | "/pkg/unicode" | ||
| 5823 | "/pkg/utk" | ||
| 5824 | "/pkg/visitors" | ||
| 5825 | "/cmds/cbfs" | ||
| 5826 | "/cmds/create-ffs" | ||
| 5827 | ;; TODO: Not packed yet in Guix, long journey: | ||
| 5828 | ;; - github.com/u-root/u-root | ||
| 5829 | ;; | ||
| 5830 | ;; "/cmds/fmap" | ||
| 5831 | ;; "/cmds/fittool" | ||
| 5832 | "/cmds/fspinfo" | ||
| 5833 | "/cmds/glzma" | ||
| 5834 | "/cmds/guid2english" | ||
| 5835 | "/cmds/microcode" | ||
| 5836 | "/cmds/utk"))))) | ||
| 5837 | (replace 'install | ||
| 5838 | (lambda _ | ||
| 5839 | (let ((bindir (string-append #$output "/bin"))) | ||
| 5840 | (for-each | ||
| 5841 | (lambda (cmd) | ||
| 5842 | (install-file cmd bindir)) | ||
| 5843 | (list "cbfs" | ||
| 5844 | "create-ffs" | ||
| 5845 | "fittool" | ||
| 5846 | "fmap" | ||
| 5847 | "fspinfo" | ||
| 5848 | "glzma" | ||
| 5849 | "guid2english" | ||
| 5850 | "microcode" | ||
| 5851 | "utk")))))))) | ||
| 5852 | (inputs | 5785 | (inputs |
| 5853 | (list go-github-com-dustin-go-humanize | 5786 | (list go-github-com-dustin-go-humanize |
| 5854 | go-github-com-fatih-camelcase | 5787 | go-github-com-fatih-camelcase |
| @@ -5860,9 +5793,10 @@ disk utilization, priority, username, state, and exit code.") | |||
| 5860 | go-github-com-spf13-pflag | 5793 | go-github-com-spf13-pflag |
| 5861 | go-github-com-stretchr-testify | 5794 | go-github-com-stretchr-testify |
| 5862 | go-github-com-tjfoc-gmsm | 5795 | go-github-com-tjfoc-gmsm |
| 5796 | go-github-com-u-root-u-root | ||
| 5863 | go-github-com-ulikunitz-xz | 5797 | go-github-com-ulikunitz-xz |
| 5864 | go-github-com-xaionaro-go-bytesextra | 5798 | go-github-com-xaionaro-go-bytesextra |
| 5865 | go-github-com-xaionaro-gosrc | 5799 | go-github-com-xaionaro-go-gosrc |
| 5866 | go-golang-org-x-text)) | 5800 | go-golang-org-x-text)) |
| 5867 | (home-page "https://github.com/linuxboot/fiano") | 5801 | (home-page "https://github.com/linuxboot/fiano") |
| 5868 | (synopsis "UEFI image editor") | 5802 | (synopsis "UEFI image editor") |
