mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-30 04:04:11 +01:00
nongnu: rtl-bt-firmware: Use gnu-build-system.
* nongnu/packages/linux.scm (rtl-bt-firmware): Use gnu-build-system.
This commit is contained in:
parent
9c70f51446
commit
883b81f6db
1 changed files with 14 additions and 17 deletions
|
@ -505,24 +505,21 @@ firmware for the following chips:
|
||||||
(package
|
(package
|
||||||
(inherit linux-firmware)
|
(inherit linux-firmware)
|
||||||
(name "rtl-bt-firmware")
|
(name "rtl-bt-firmware")
|
||||||
(build-system trivial-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:tests? #f
|
||||||
#:builder
|
#:license-file-regexp "LICENCE.rtlwifi_firmware.txt"
|
||||||
(begin
|
#:phases
|
||||||
(use-modules (guix build utils))
|
(modify-phases %standard-phases
|
||||||
(let* ((source (assoc-ref %build-inputs "source"))
|
(replace 'install
|
||||||
(fw-dir (string-append %output "/lib/firmware/"))
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(bin-dir (string-append fw-dir "/rtl_bt"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(gzip (assoc-ref %build-inputs "gzip"))
|
(fw-dir (string-append out "/lib/firmware"))
|
||||||
(tar (assoc-ref %build-inputs "tar")))
|
(bin-dir (string-append fw-dir "/rtl_bt")))
|
||||||
(set-path-environment-variable "PATH" '("bin")
|
|
||||||
(list tar gzip))
|
|
||||||
(invoke "tar" "--strip-components=1" "-xvf" source)
|
|
||||||
(mkdir-p bin-dir)
|
(mkdir-p bin-dir)
|
||||||
(copy-recursively "./rtl_bt" bin-dir)
|
(copy-recursively "./rtl_bt" bin-dir)
|
||||||
(install-file "./LICENCE.rtlwifi_firmware.txt" fw-dir)
|
#t)))
|
||||||
#t))))
|
(delete 'validate-runpath))))
|
||||||
(synopsis "Nonfree firmware for Realtek bluetooth chips")
|
(synopsis "Nonfree firmware for Realtek bluetooth chips")
|
||||||
(description
|
(description
|
||||||
"This package contains nonfree firmware for the following Realtek bluetooth chips:
|
"This package contains nonfree firmware for the following Realtek bluetooth chips:
|
||||||
|
|
Loading…
Reference in a new issue