summaryrefslogtreecommitdiff
path: root/nonfree/packages/linux.scm
diff options
context:
space:
mode:
authorAlex Griffin <a@ajgrf.com>2019-05-25 13:19:47 -0500
committerAlex Griffin <a@ajgrf.com>2019-05-25 13:55:50 -0500
commit4bc68f7330b2469d11157e986c69b54405a1aadc (patch)
treeb8fa73ef898032df8fa32e0aa095fc4110eec561 /nonfree/packages/linux.scm
parent2ae155fd6a61ebaf75d419c088871a1853c2208e (diff)
nonfree: Add ath3k-firmware.
* nonfree/packages/linux.scm (ath3k-firmware): New variable.
Diffstat (limited to 'nonfree/packages/linux.scm')
-rw-r--r--nonfree/packages/linux.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/nonfree/packages/linux.scm b/nonfree/packages/linux.scm
index ac48b58..b2469e1 100644
--- a/nonfree/packages/linux.scm
+++ b/nonfree/packages/linux.scm
@@ -90,3 +90,24 @@ hardware in the Linux kernel.")
(license:non-copyleft
(string-append "https://git.kernel.org/pub/scm/linux/kernel/git/"
"firmware/linux-firmware.git/plain/WHENCE"))))))
+
+(define-public ath3k-firmware
+ (package
+ (inherit linux-firmware)
+ (name "ath3k-firmware")
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source"))
+ (fw-dir (string-append %output "/lib/firmware")))
+ (mkdir-p fw-dir)
+ (copy-file (string-append source "/ath3k-1.fw")
+ (string-append fw-dir "/ath3k-1.fw"))
+ (copy-recursively (string-append source "/ar3k")
+ (string-append fw-dir "/ar3k"))
+ #t))))
+ (synopsis "Non-free firmware blobs for the ath3k Bluetooth driver")
+ (description "Non-free firmware blobs for the ath3k Bluetooth driver. ath3k
+is the Linux Bluetooth driver for Atheros AR3011/AR3012 Bluetooth chipsets.")))