mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-12-23 23:34:52 +01:00
nongnu: nvda: Use gexp.
* nongnu/packages/nvidia.scm (nvda): Use gexp. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
parent
96292fee38
commit
32c687865d
1 changed files with 6 additions and 7 deletions
|
@ -512,26 +512,25 @@ configuration, creating application profiles, gpu monitoring and more.")
|
||||||
(source #f)
|
(source #f)
|
||||||
(build-system trivial-build-system)
|
(build-system trivial-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:modules ((guix build union))
|
(list #:modules '((guix build union))
|
||||||
#:builder (begin
|
#:builder #~(begin
|
||||||
(use-modules (guix build union)
|
(use-modules (guix build union)
|
||||||
(srfi srfi-1)
|
(srfi srfi-1)
|
||||||
(ice-9 regex))
|
(ice-9 regex))
|
||||||
(union-build (assoc-ref %outputs "out")
|
(union-build (assoc-ref %outputs "out")
|
||||||
(list (assoc-ref %build-inputs "mesa") (assoc-ref %build-inputs "nvidia-libs"))
|
(list #$mesa #$nvidia-libs)
|
||||||
#:resolve-collision (lambda (files) (let ((file
|
#:resolve-collision (lambda (files) (let ((file
|
||||||
(if (string-match "nvidia-libs" (first files))
|
(if (string-match "nvidia-libs" (first files))
|
||||||
(first files)
|
(first files)
|
||||||
(last files))))
|
(last files))))
|
||||||
(format #t "chosen ~a ~%" file)
|
(format #t "chosen ~a ~%" file)
|
||||||
file)))
|
file))))))
|
||||||
#t)))
|
|
||||||
(description "These are the libraries of the evil Nvidia driver,
|
(description "These are the libraries of the evil Nvidia driver,
|
||||||
packaged in such a way that you can use the transformation option
|
packaged in such a way that you can use the transformation option
|
||||||
@code{--with-graft=mesa=nvda} to use the nvidia driver with a package that requires mesa.")
|
@code{--with-graft=mesa=nvda} to use the nvidia driver with a package that requires mesa.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("nvidia-libs" ,nvidia-libs)
|
(list mesa
|
||||||
("mesa" ,mesa)))
|
nvidia-libs))
|
||||||
(outputs '("out"))))
|
(outputs '("out"))))
|
||||||
|
|
||||||
(define mesa/fake
|
(define mesa/fake
|
||||||
|
|
Loading…
Reference in a new issue