[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61959] [PATCH v2 4/7] gnu: Add asahi-fwextract.
From: |
Roman Scherer |
Subject: |
[bug#61959] [PATCH v2 4/7] gnu: Add asahi-fwextract. |
Date: |
Sun, 5 Mar 2023 11:53:12 +0100 |
* gnu/packages/firmware.scm (asahi-fwextract): New variable.
---
gnu/packages/firmware.scm | 42 +++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index a876aa727a..0d52349240 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -34,6 +34,7 @@ (define-module (gnu packages firmware)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system trivial)
#:use-module (gnu packages)
#:use-module (gnu packages admin)
@@ -77,6 +78,47 @@ (define-module (gnu packages firmware)
#:use-module (gnu packages xml)
#:use-module (ice-9 match))
+(define-public asahi-fwextract
+ (let ((commit "0ac64c9ce1c460f4576162a82d239d7e8688a79e"))
+ (package
+ (name "asahi-fwextract")
+ (version (git-version "0.5.3" "0" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/AsahiLinux/asahi-installer")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1kj9ycy3f34fzm9bnirlcw9zm2sgipwrqzphdg5k099rbjbc7zmj"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file-recursively "vendor")
+ (with-output-to-file "entry_points.txt"
+ (lambda ()
+ (format #t "[console_scripts]\n")
+ (format #t "asahi-fwextract =
asahi_firmware.update:main")))))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'create-entrypoints 'wrap-program
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/asahi-fwextract")
+ `("LD_LIBRARY_PATH" ":" prefix
+ (,(string-append (assoc-ref inputs "lzfse")
"/lib"))))))))))
+ (inputs (list lzfse))
+ (home-page "https://github.com/AsahiLinux/asahi-installer")
+ (synopsis "Asahi Linux firmware extractor")
+ (description "The Asahi Linux firmware extractor transform the firmware
archive
+provided by the Asahi Linux installer into a manifest and CPIO and TAR
+archives that are compatible with the Linux kernel.")
+ (license license:expat))))
+
(define-public ath9k-htc-firmware
(package
(name "ath9k-htc-firmware")
--
2.39.1
- [bug#61959] [PATCH 6/7] gnu: Add asahi-mesa-headers., (continued)
- [bug#61959] [PATCH 0/7] Add some Asahi Linux packages, Ricardo Wurmus, 2023/03/04
- [bug#61959] [PATCH 0/7] Add some Asahi Linux packages, Winter, 2023/03/04
- [bug#61959] [PATCH v2 1/7] gnu: Add m1n1., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v2 2/7] gnu: Add u-boot-apple-m1., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v2 4/7] gnu: Add asahi-fwextract.,
Roman Scherer <=
- [bug#61959] [PATCH v2 5/7] gnu: Add asahi-mesa., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v2 7/7] gnu: Add asahi-mesa-utils., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v2 3/7] gnu: libdrm: Update to 2.4.114., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v2 6/7] gnu: Add asahi-mesa-headers., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 0/7] Add some Asahi Linux packages, Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 2/7] gnu: Add u-boot-apple-m1., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 4/7] gnu: Add asahi-fwextract., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 1/7] gnu: Add m1n1., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 6/7] gnu: Add asahi-mesa-headers., Roman Scherer, 2023/03/05
- [bug#61959] [PATCH v3 7/7] gnu: Add asahi-mesa-utils., Roman Scherer, 2023/03/05