diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-07-04 21:09:45 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-07-05 00:30:39 +0800 |
| commit | 66ab7fff7a4ee0592c708651556ef3805c85068f (patch) | |
| tree | 7ae160e1739db91a84a6c1a201032b12f22db8c0 /nongnu | |
| parent | 8e3a2d95242630fdb880f380e88c995baac0f8b1 (diff) | |
nongnu: make-nvda: Add more Vulkan search paths.
* nongnu/packages/nvidia.scm (make-nvda) [native-search-paths]: Use pre-defined
$XDG_DATA_DIRS.
Add VK_ADD_DRIVER_FILES, VK_ADD_LAYER_PATH and VK_ADD_IMPLICIT_LAYER_PATH.
Diffstat (limited to 'nongnu')
| -rw-r--r-- | nongnu/packages/nvidia.scm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 93c1e9b..b75e7a0 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #:use-module (guix download) | 14 | #:use-module (guix download) |
| 15 | #:use-module (guix gexp) | 15 | #:use-module (guix gexp) |
| 16 | #:use-module (guix git-download) | 16 | #:use-module (guix git-download) |
| 17 | #:use-module (guix search-paths) | ||
| 17 | #:use-module (guix utils) | 18 | #:use-module (guix utils) |
| 18 | #:use-module ((guix licenses) #:prefix license-gnu:) | 19 | #:use-module ((guix licenses) #:prefix license-gnu:) |
| 19 | #:use-module ((nonguix licenses) #:prefix license:) | 20 | #:use-module ((nonguix licenses) #:prefix license:) |
| @@ -1578,10 +1579,19 @@ content.") | |||
| 1578 | (variable "VDPAU_DRIVER_PATH") | 1579 | (variable "VDPAU_DRIVER_PATH") |
| 1579 | (files '("lib/vdpau")) | 1580 | (files '("lib/vdpau")) |
| 1580 | (separator #f)) | 1581 | (separator #f)) |
| 1581 | ;; https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderLayerInterface.md | 1582 | ;; https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#active-environment-variables |
| 1583 | $XDG_DATA_DIRS | ||
| 1582 | (search-path-specification | 1584 | (search-path-specification |
| 1583 | (variable "XDG_DATA_DIRS") | 1585 | (variable "VK_ADD_DRIVER_FILES") |
| 1584 | (files '("share"))))) | 1586 | (files '("share/vulkan/icd.d")) |
| 1587 | (file-type 'regular) | ||
| 1588 | (file-pattern "^.*\\.json$")) | ||
| 1589 | (search-path-specification | ||
| 1590 | (variable "VK_ADD_LAYER_PATH") | ||
| 1591 | (files '("share/vulkan/explicit_layer.d"))) | ||
| 1592 | (search-path-specification | ||
| 1593 | (variable "VK_ADD_IMPLICIT_LAYER_PATH") | ||
| 1594 | (files '("share/vulkan/implicit_layer.d"))))) | ||
| 1585 | (synopsis "Nonguix's user-facing NVIDIA driver package") | 1595 | (synopsis "Nonguix's user-facing NVIDIA driver package") |
| 1586 | (description | 1596 | (description |
| 1587 | "This package provides a @code{mesa} variant with NVIDIA proprietary driver | 1597 | "This package provides a @code{mesa} variant with NVIDIA proprietary driver |
