mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-26 18:35:19 +01:00
nongnu: ath3k-firmware: Use gnu-build-system.
* nongnu/packages/linux.scm (ath3k-firmware): Use gnu-build-system.
This commit is contained in:
parent
f1bfe90179
commit
ba0ddcc4ac
1 changed files with 16 additions and 23 deletions
|
@ -145,30 +145,23 @@ advanced 3D.")
|
||||||
(package
|
(package
|
||||||
(inherit linux-firmware)
|
(inherit linux-firmware)
|
||||||
(name "ath3k-firmware")
|
(name "ath3k-firmware")
|
||||||
(build-system trivial-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:tests? #f
|
||||||
#:builder
|
#:license-file-regexp
|
||||||
(begin
|
"LICEN[CS]E\\.(atheros_firmware|QualcommAtheros_ar3k)"
|
||||||
(use-modules (guix build utils))
|
#:phases
|
||||||
(let ((source (assoc-ref %build-inputs "source"))
|
(modify-phases %standard-phases
|
||||||
(fw-dir (string-append %output "/lib/firmware"))
|
(replace 'install
|
||||||
(gzip (assoc-ref %build-inputs "gzip"))
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(tar (assoc-ref %build-inputs "tar")))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(set-path-environment-variable "PATH" '("bin")
|
(fw-dir (string-append out "/lib/firmware"))
|
||||||
(list tar gzip))
|
(bin-dir (string-append fw-dir "/ar3k")))
|
||||||
(invoke "tar" "--strip-components=1" "-xvf" source)
|
(mkdir-p bin-dir)
|
||||||
(mkdir-p fw-dir)
|
(copy-recursively "./ar3k" bin-dir)
|
||||||
(for-each (lambda (file)
|
(install-file "ath3k-1.fw" fw-dir)
|
||||||
(copy-file file
|
#t)))
|
||||||
(string-append fw-dir "/" file)))
|
(delete 'validate-runpath))))
|
||||||
(list "ath3k-1.fw"
|
|
||||||
"LICENCE.atheros_firmware"
|
|
||||||
"LICENSE.QualcommAtheros_ar3k"
|
|
||||||
"WHENCE"))
|
|
||||||
(copy-recursively "./ar3k"
|
|
||||||
(string-append fw-dir "/ar3k"))
|
|
||||||
#t))))
|
|
||||||
(synopsis "Nonfree firmware blobs for the ath3k Bluetooth driver")
|
(synopsis "Nonfree firmware blobs for the ath3k Bluetooth driver")
|
||||||
(description "Nonfree firmware blobs for the ath3k Bluetooth driver. ath3k
|
(description "Nonfree firmware blobs for the ath3k Bluetooth driver. ath3k
|
||||||
is the Linux Bluetooth driver for Atheros AR3011/AR3012 Bluetooth chipsets.")
|
is the Linux Bluetooth driver for Atheros AR3011/AR3012 Bluetooth chipsets.")
|
||||||
|
|
Loading…
Reference in a new issue