mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-11-26 10:25:19 +01:00
nongnu: linux-firmware: Use gnu-build-system.
* nongnu/packages/linux.scm (linux-firmware): Use gnu-build-system.
This commit is contained in:
parent
c249eba462
commit
1da9083f98
1 changed files with 11 additions and 14 deletions
|
@ -25,6 +25,7 @@
|
|||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system linux-module)
|
||||
#:use-module (guix build-system trivial)
|
||||
#:use-module (ice-9 match)
|
||||
|
@ -84,21 +85,17 @@ on hardware which requires nonfree software to function.")))
|
|||
(sha256
|
||||
(base32
|
||||
"024napabn3zwl8gr50w9cp4gdxhch8pkl2qx814c93ydkfj81znd"))))
|
||||
(build-system trivial-build-system)
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:modules ((guix build utils))
|
||||
#:builder (begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((source (assoc-ref %build-inputs "source"))
|
||||
(destination (string-append %output "/lib/firmware"))
|
||||
(gzip (assoc-ref %build-inputs "gzip"))
|
||||
(tar (assoc-ref %build-inputs "tar")))
|
||||
(set-path-environment-variable "PATH" '("bin")
|
||||
(list tar gzip))
|
||||
(invoke "tar" "--strip-components=1" "-xvf" source)
|
||||
(mkdir-p destination)
|
||||
(copy-recursively "." destination #:follow-symlinks? #t)
|
||||
#t))))
|
||||
`(#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(invoke "make" "install"
|
||||
(string-append "DESTDIR=" out)))))
|
||||
(delete 'validate-runpath))))
|
||||
(native-inputs
|
||||
`(("gzip" ,gzip)
|
||||
("tar" ,tar)))
|
||||
|
|
Loading…
Reference in a new issue