nongnu: rtlwifi-firmware: Use gnu-build-system.

* nongnu/packages/linux.scm (rtlwifi-firmware): Use gnu-build-system.
This commit is contained in:
Alex Griffin 2020-01-05 12:52:52 -06:00
parent 1a7fdfe34d
commit 352d9d9741

View file

@ -391,24 +391,21 @@ chipsets from Broadcom:
(package (package
(inherit linux-firmware) (inherit linux-firmware)
(name "rtlwifi-firmware") (name "rtlwifi-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 "/rtlwifi")) (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 "/rtlwifi")))
(set-path-environment-variable "PATH" '("bin") (mkdir-p bin-dir)
(list tar gzip)) (copy-recursively "./rtlwifi" bin-dir)
(invoke "tar" "--strip-components=1" "-xvf" source) #t)))
(mkdir-p bin-dir) (delete 'validate-runpath))))
(copy-recursively "./rtlwifi" bin-dir)
(install-file "./LICENCE.rtlwifi_firmware.txt" fw-dir)
#t))))
(home-page "https://wireless.wiki.kernel.org/en/users/drivers/rtl819x") (home-page "https://wireless.wiki.kernel.org/en/users/drivers/rtl819x")
(synopsis "Nonfree firmware for Realtek wifi chips") (synopsis "Nonfree firmware for Realtek wifi chips")
(description (description