mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-26 18:35:19 +01:00
nongnu: iwlwifi-firmware: Use gnu-build-system.
* nongnu/packages/linux.scm (iwlwifi-firmware): Use gnu-build-system.
This commit is contained in:
parent
ba0ddcc4ac
commit
1a7fdfe34d
1 changed files with 14 additions and 21 deletions
|
@ -180,28 +180,21 @@ is the Linux Bluetooth driver for Atheros AR3011/AR3012 Bluetooth chipsets.")
|
||||||
(package
|
(package
|
||||||
(inherit linux-firmware)
|
(inherit linux-firmware)
|
||||||
(name "iwlwifi-firmware")
|
(name "iwlwifi-firmware")
|
||||||
(build-system trivial-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:tests? #f
|
||||||
#:builder
|
#:license-file-regexp "LICENCE.iwlwifi_firmware"
|
||||||
(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)
|
||||||
(gzip (assoc-ref %build-inputs "gzip"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(tar (assoc-ref %build-inputs "tar")))
|
(fw-dir (string-append out "/lib/firmware")))
|
||||||
(set-path-environment-variable "PATH" '("bin")
|
|
||||||
(list tar gzip))
|
|
||||||
(invoke "tar" "--strip-components=1" "-xvf" source)
|
|
||||||
(mkdir-p fw-dir)
|
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(copy-file file
|
(install-file file fw-dir))
|
||||||
(string-append fw-dir (basename file))))
|
(find-files "." "iwlwifi-.*\\.ucode$"))
|
||||||
(cons*
|
#t)))
|
||||||
"./LICENCE.iwlwifi_firmware"
|
(delete 'validate-runpath))))
|
||||||
(find-files "."
|
|
||||||
"iwlwifi-.*\\.ucode$")))
|
|
||||||
#t))))
|
|
||||||
(home-page "https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi")
|
(home-page "https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi")
|
||||||
(synopsis "Nonfree firmware for Intel wifi chips")
|
(synopsis "Nonfree firmware for Intel wifi chips")
|
||||||
(description "The proprietary iwlwifi kernel module is required by many
|
(description "The proprietary iwlwifi kernel module is required by many
|
||||||
|
|
Loading…
Reference in a new issue