mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-12-23 07:14:53 +01:00
nongnu: nvidia-driver: Install GBM and VDPAU library to correct path.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Install GBM and VDPAU library to correct path. Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
parent
732cce2c90
commit
0ae85eb25e
1 changed files with 15 additions and 1 deletions
|
@ -320,13 +320,27 @@ ACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\
|
||||||
'("nvidia-smi")))))
|
'("nvidia-smi")))))
|
||||||
(add-before 'patch-elf 'relocate-libraries
|
(add-before 'patch-elf 'relocate-libraries
|
||||||
(lambda _
|
(lambda _
|
||||||
(let* ((libdir (string-append #$output "/lib"))
|
(let* ((version #$(package-version this-package))
|
||||||
|
(libdir (string-append #$output "/lib"))
|
||||||
|
(gbmdir (string-append libdir "/gbm"))
|
||||||
|
(vdpaudir (string-append libdir "/vdpau"))
|
||||||
(xorgmoddir (string-append libdir "/xorg/modules"))
|
(xorgmoddir (string-append libdir "/xorg/modules"))
|
||||||
(xorgdrvdir (string-append xorgmoddir "/drivers"))
|
(xorgdrvdir (string-append xorgmoddir "/drivers"))
|
||||||
(xorgextdir (string-append xorgmoddir "/extensions"))
|
(xorgextdir (string-append xorgmoddir "/extensions"))
|
||||||
(move-to-dir (lambda (file dir)
|
(move-to-dir (lambda (file dir)
|
||||||
(install-file file dir)
|
(install-file file dir)
|
||||||
(delete-file file))))
|
(delete-file file))))
|
||||||
|
(for-each
|
||||||
|
(lambda (file)
|
||||||
|
(mkdir-p gbmdir)
|
||||||
|
(with-directory-excursion gbmdir
|
||||||
|
(symlink file "nvidia-drm_gbm.so")))
|
||||||
|
(find-files libdir "libnvidia-allocator\\.so\\."))
|
||||||
|
|
||||||
|
(for-each
|
||||||
|
(cut move-to-dir <> vdpaudir)
|
||||||
|
(find-files libdir "libvdpau_nvidia\\.so\\."))
|
||||||
|
|
||||||
(for-each
|
(for-each
|
||||||
(cut move-to-dir <> xorgdrvdir)
|
(cut move-to-dir <> xorgdrvdir)
|
||||||
(find-files libdir "nvidia_drv\\.so$"))
|
(find-files libdir "nvidia_drv\\.so$"))
|
||||||
|
|
Loading…
Reference in a new issue