nongnu: rtl-nic-firmware: Use gnu-build-system.

* nongnu/packages/linux.scm (rtl-nic-firmware): Use gnu-build-system.
This commit is contained in:
Alex Griffin 2020-01-05 13:08:18 -06:00
parent 352d9d9741
commit 9c70f51446

View file

@ -455,24 +455,21 @@ firmware for the following chips:
(package (package
(inherit linux-firmware) (inherit linux-firmware)
(name "rtl-nic-firmware") (name "rtl-nic-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_nic")) (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_nic")))
(set-path-environment-variable "PATH" '("bin") (mkdir-p bin-dir)
(list tar gzip)) (copy-recursively "./rtl_nic" bin-dir)
(invoke "tar" "--strip-components=1" "-xvf" source) #t)))
(mkdir-p bin-dir) (delete 'validate-runpath))))
(copy-recursively "./rtl_nic" bin-dir)
(install-file "./LICENCE.rtlwifi_firmware.txt" fw-dir)
#t))))
(synopsis "Nonfree firmware for Realtek ethernet chips") (synopsis "Nonfree firmware for Realtek ethernet chips")
(description (description
"This package contains nonfree firmware for the following Realtek ethernet chips: "This package contains nonfree firmware for the following Realtek ethernet chips: