Commit graph

62 commits

Author SHA1 Message Date
Hilton Chain
5fab8f4967
nongnu: nvidia-settings: Fix application profile path.
* nongnu/packages/nvidia.scm (nvidia-settings)[arguments]<#:phases>:
Add 'fix-application-profile-path.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:31 -04:00
Hilton Chain
54d01560e9
nongnu: nvidia-settings: Unbundle jansson.
* nongnu/packages/nvidia.scm (nvidia-settings) [inputs]: Add jansson.
[source]<snippet>: Delete bundled jansson.
[arguments]<#:make-flags>: Don't use bundled jansson.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:30 -04:00
Hilton Chain
f6c8eb082c
nongnu: nvidia-driver: Add architecture to configuration filenames.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Add
architecture to configuration filenames.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:28 -04:00
Hilton Chain
d59c557f79
nongnu: nvidia-driver: Install EGL vendor ICD configuration.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:install-plan>: Install
EGL vendor ICD configuration.
<#:phases>: Modify its library path.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:27 -04:00
Hilton Chain
0ae85eb25e
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>
2024-04-24 20:06:25 -04:00
Hilton Chain
732cce2c90
nongnu: nvidia-driver: Update udev rules.
* nongnu/packages/nvidia.scm (%nvidia-script-create-device-nodes)
(%nvidia-udev-rules): New variables.
(nvidia-driver)[arguments]<#:modules,#:phases>: Adjust accordingly.
[inputs]: Remove bash-minimal, coreutils, grep.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:24 -04:00
Hilton Chain
c05b4995ab
nongnu: nvidia-driver: Unbundle EGL external platform libraries.
* nongnu/packages/nvidia.scm (nvidia-source-unbundle-libraries): Remove egl-gbm
and egl-wayland libraries.
(nvidia-driver)[inputs]: Add egl-gbm, egl-wayland.
Remove mesa.
[arguments]<#:phases>: Use them for configuration.
Adjust RUNPATH accordingly.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:22 -04:00
Hilton Chain
5b0465cf31
nongnu: nvidia-driver: Adjust package style.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>:
Remove $ORIGIN from RUNPATH.
Ungexp properly.
Rewrite configuration substitution.
Rename phase ‘install-nvidia-smi’ to ‘install-commands’.
Relocate libraries in a separate phase.
Remove extra spaces.
<#:install-plan>: Adjust accordingly.
[description]: Remove final newline.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:21 -04:00
Hilton Chain
2b4dfe83e9
nongnu: nvidia-driver: Remove kernel module dependencies.
* nongnu/packages/nvidia.scm (nvidia-driver)[inputs]: Remove kmod, linux-lts.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:19 -04:00
Hilton Chain
7006d54c47
nongnu: nvidia-driver: Remove library provided by opencl-icd-loader.
* nongnu/packages/nvidia.scm (nvidia-source-unbundle-libraries): Remove library
provided by opencl-icd-loader.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:18 -04:00
Hilton Chain
99e12e9cbe
nongnu: nvidia-driver: Remove libraries provided by nvidia-settings.
* nongnu/packages/nvidia.scm (nvidia-source-unbundle-libraries): Remove
libraries provided by nvidia-settings.
(nvidia-driver)[arguments]<#:phases>: Remove their dependencies from RUNPATH.
[inputs]: Remove atk, cairo, gdk-pixbuf, glib, gtk+, gtk+-2, pango.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:16 -04:00
Hilton Chain
4bc11de5dd
nongnu: make-nvidia-source: Extend functionality.
* nongnu/packages/nvidia.scm (nvidia-source-unbundle-libraries): New procedure.
(make-nvidia-source): Create installer origin internally.
Accept a ‘get-cleanup-snippet’ procedure.
(nvidia-source): Adjust accordingly.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:15 -04:00
Hilton Chain
5f7dabe418
nongnu: make-nvidia-source: Adjust style.
* nongnu/packages/nvidia.scm (computed-origin-method): Delete from top-level.
(make-nvidia-source): Use ungexp-native only once.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:13 -04:00
Hilton Chain
47941b0a84
nongnu: nvidia: Re-order variables.
* nongnu/packages/nvidia.scm: Remove unused modules.
Add comments to group NVIDIA driver packages.
Sort other packages alphabetically.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-04-24 20:06:11 -04:00
Hilton Chain
825f6ee783
nongnu: game-client: Preserve environment variables for NVIDIA driver.
* nongnu/packages/nvidia.scm (%nvidia-environment-variable-regexps): New
variable.
* nongnu/packages/game-client.scm (steam-nvidia-container)
(heroic-nvidia-container): Use it.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-03-22 21:08:33 -04:00
Pierre Langlois
91be26a9d5
nongnu: nvidia-driver: Fix non-x86 builds.
This is needed to fix `guix pull' on non-x86 platforms.

* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]: Add catch-all for
match install-plan.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-06-26 23:36:12 +02:00
Sughosha
69b05a57ee
nongnu: nvidia-driver: Support "i686-linux" system.
* nongnu/packages/nvidia.scm (nvidia-driver): Support "i686-linux" system.

Signed-off-by: ison <ison@airmail.cc>
2023-06-21 16:30:27 -06:00
Petr Hodina
29d63cbac7
nongnu: Add nvidia-system-monitor.
* nongnu/packages/nvidia.scm (nvidia-system-monitor): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-02-04 12:31:46 +01:00
Petr Hodina
5bdf006aba
nongnu: Add python-py3nvml.
* nongnu/packages/nvidia.scm (python-py3nvml): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-02-04 12:21:53 +01:00
Petr Hodina
432b14520f
nongnu: Add nvidia-htop.
* nongnu/packages/nvidia.scm (nvidia-htop): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-02-04 12:21:41 +01:00
Petr Hodina
0942612f0f
nongnu: Add gpustat.
* nongnu/packages/nvidia.scm (gpustat): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-02-04 12:21:35 +01:00
Petr Hodina
f59c9ad665
nongnu: Add python-nvidia-ml-py.
* nongnu/packages/nvidia.scm (python-nvidia-ml-py): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2023-02-04 12:21:31 +01:00
Jonathan Brielmaier
62a5df4222
*.scm: Use SPDX license identifiers.
Fixes https://gitlab.com/nonguix/nonguix/-/issues/224

* *.scm: Use SPDX license identifier and remove obsolete license
statement.
2022-12-19 17:17:39 +01:00
Hilton Chain
7d4c49eace
nongnu: nversion: Remove variable.
* nongnu/packages/nvidia.scm (nversion): Remove variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:44:08 +01:00
Hilton Chain
618c7e26eb
nongnu: nvidia-module-open: Use nvidia-module as base.
* nongnu/packages/nvidia.scm (nvidia-module-open): Use nvidia-module as base.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:39:58 +01:00
Hilton Chain
8a4fef778c
nongnu: nvidia-source: Update to 515.76.
* nongnu/packages/nvidia.scm (nvidia-version, nvidia-driver,nvidia-settings): Update to 515.76
[arguments]<#:phases>: Install GBM EGL external platform library.
[inputs]: Add libdrm and mesa.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:32:11 +01:00
Hilton Chain
12104c6ed1
nongnu: nvidia-libs: Remove package.
* nongnu/packages/nvidia.scm (nvidia-libs): Remove package definition and deprecate the variable.

Co-authored-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:19:59 +01:00
Hilton Chain
4ce327023f
nongnu: nvda: Use nvidia-driver as base.
* nongnu/packages/nvidia.scm (nvda): Use nvidia-driver as base.
[inputs]: Adjusted accordingly.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:13:43 +01:00
Hilton Chain
fb5a3d0e97
nongnu: nvda: Avoid hardcoding inputs.
* nongnu/packages/nvidia.scm (nvda)[arguments]: Avoid hardcoding inputs and
locate them via relative paths instead.
[description]: Adjust style.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:12:42 +01:00
Hilton Chain
6874c66ddc
nongnu: Add nvidia-service-type.
* nongnu/services/nvidia.scm: New file.
(<nvidia-configuration>): New data type.
(nvidia-shepherd-service,nvidia-service-type): New variables.
* nongnu/packages/nvidia.scm (nvidia-driver)[description]: Adjust accordingly.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:10:33 +01:00
Hilton Chain
cbb9b59c11
nongnu: Add nvidia-firmware.
* nongnu/packages/nvidia.scm (nvidia-firmware): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:05:44 +01:00
Hilton Chain
09b37c490e
nongnu: nvidia-driver: Split post-install phase.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Split
post-install phase into patch-elf and create-short-name-symlinks phases.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:04:32 +01:00
Hilton Chain
3c0e54efbf
nongnu: nvidia-driver: Remove unused dirname variables in post-install phase.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Remove
dirname variables.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:03:41 +01:00
Hilton Chain
61c61bd8c2
nongnu: nvidia-driver: Use copy-build-system.
* nongnu/packages/nvidia.scm (nvidia-driver)[build-system]: Change to
copy-build-system.
[arguments]<#:phases>: Add create-misc-files phase.
Remove build phase.
Rename install-copy phase to post-install.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 14:01:32 +01:00
Hilton Chain
53f1b621d9
nongnu: Add nvidia-module.
This is the proprietary Nvidia kernel module.

* nongnu/packages/nvidia.scm (nvidia-module): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:44:39 +01:00
Hilton Chain
43a742bc1a
nongnu: nvidia-module: Rename to nvidia-module-open.
* nongnu/packages/nvidia.scm (nvidia-module): Rename to nvidia-module-open.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:42:31 +01:00
Hilton Chain
402f53c096
nongnu: Add procedure (make-nvidia-source).
* nongnu/packages/nvidia.scm (computed-origin-method,make-nvidia-source)
(nvidia-source): New variables.
(nvidia-driver)[source]: Use nvidia-source instead.
[arguments]<#:phases>: Remove unpack phase.
[native-inputs]: Remove perl, python-2, which and xz.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:39:47 +01:00
Hilton Chain
115b9ed40b
nongnu: nvidia-driver: Move (use-modules) out of #:phases.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:modules>: Moved out
from <#:phases>.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:38:37 +01:00
Hilton Chain
df03530aed
nongnu: nvidia-driver: Rewrite logic for creating short name symbolic links.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Rewrite
logic for creating short name symbolic links, utilizing patchelf.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:29:24 +01:00
Hilton Chain
fe9813a3ee
nongnu: nvidia-driver: Simplify udev rules creation.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Simplify udev rules creation.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:25:37 +01:00
Hilton Chain
9f4e8e82f1
nongnu: nvidia-driver: Don't hardcode inputs.
* nongnu/packages/nvidia.scm (nvidia-driver)[arguments]<#:phases>: Use
G-expression and don't hardcode inputs when possible.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:24:17 +01:00
Hilton Chain
1544351697
nongnu: nvidia-driver: Fix indentation.
* nongnu/packages/nvidia.scm (nvidia-driver): Fix indentation.
[inputs,native-inputs]: Sort alphabetically.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-12-18 13:22:24 +01:00
John Kehayias
cbc4c651ad
nongnu: nvidia-module: Update to 515.76.
This fixes the build with linux@6.0.

* nongnu/packages/nvidia.scm (nvidia-module, nversion): Update to 515.76.
2022-11-04 18:56:35 -04:00
Alexey Abramov
2a368a20cc
nongnu: Add nvidia-nvml.
* nongnu/packages/nvidia.scm (nvidia-nvml): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-10-20 17:44:07 +02:00
Petr Hodina
d738f3c7fd
nongnu: Add nvidia-exec.
* nongnu/packages/nvidia.scm (nvidia-exec): New variable.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-09-10 20:28:36 +02:00
Petr Hodina
c87afddd63
nongnu: nversion: update to 515.57.
* nongnu/packages/nvidia.scm (nversion): Update to 515.57.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-08-14 11:24:53 +02:00
Jonathan Brielmaier
2fd265817f
nongnu: nvidia-libs: Use correct input names.
This reverts parts of 668fda08 which where accidentialy commited.

* nongnu/packages/nvidia.scm (nvidia-libs)[arguments]: Replace gcc by
gcc:lib and make gtk+ and gtk2 correct strings again in rpath list.
2022-06-26 12:52:51 +02:00
Petr Hodina
668fda0855
nongnu: nvidia-driver: Simplify inputs.
* nongnu/packages/nvidia.scm (nvidia-driver): Simplify inputs.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-06-26 12:36:23 +02:00
Petr Hodina
387d13492f
nongnu: nvidia-driver: Use gexp.
* nongnu/packages/nvidia.scm (nvidia-driver): Use gexp.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-06-26 12:33:43 +02:00
Petr Hodina
32c687865d
nongnu: nvda: Use gexp.
* nongnu/packages/nvidia.scm (nvda): Use gexp.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2022-06-26 12:15:00 +02:00