Commit Graph

94 Commits

Author SHA1 Message Date
ccicnce113424
f70490cade linuxPackages.nvidiaPackages: fix gsp firmware installation in version 610 and later 2026-05-31 16:25:52 +08:00
ccicnce113424
78f6ee7ba2 nixos/nvidia: utilize ICD libraries built from source
This changes the NVIDIA NixOS module to use ICD libraries built from
source rather than relying on the pre-compiled bundled versions.

Additionally, this adds a necessary workaround for driver versions
below 595 to ensure proper compatibility.

For more context on the workaround, see the discussion at:
https://github.com/NixOS/nixpkgs/pull/497342#issuecomment-4034876793
2026-04-27 02:36:37 +08:00
ccicnce113424
c7dfcad894 linuxPackages.nvidia-x11: separate proprietary kernel modules 2026-04-27 02:36:37 +08:00
Kiskae
85149743aa linuxPackages.nvidiaPackages.beta: fix wine libs 2025-01-30 20:13:54 +01:00
Wolfgang Walther
cf127c9dc3 treewide: load structured attributes in all bash builders consistently
It's hard to put the sourcing of ./.attrs.sh into all builder
consistently - mistakes will happen. Thus, load structured attrs once in
make-derivation and then source the remaining builder on top.

This should fix quite a few builders with structured attributes in
principle. Most importantly it helps substitute / substituteAll, which
are required for bootstrap on some platforms.
2024-12-29 18:36:47 +01:00
K900
10f9466add linuxPackages.nvidia_x11: symlink libglxserver_nvidia.so 2024-09-29 18:56:25 +03:00
K900
6663591207 linuxPackages.nvidia_x11: install libraries with correct sonames
Use the real soname from the library to determine where to link it,
and use a symlink structure that does not make ldconfig explode.
2024-09-22 20:29:49 +03:00
Kiskae
8b52dae3ec linuxPackages.nvidiaPackages.*: don't package unused openssl 1.1 compat library
fixes #273064
2024-08-25 17:42:00 +02:00
Kiskae
21bc7a6efd linuxPackages.nvidiaPackages.beta: fix icds 2024-07-23 19:07:56 +02:00
Thiago Kenji Okada
79456ded62 Merge pull request #172739 from robgssp/master
nvidia-x11: Package nvidia-bug-report.sh
2024-07-01 13:48:18 +00:00
esthromeris
50bfc776d4 nvidia-x11.legacy_390: fix bug
Said bug is described at https://bbs.archlinux.org/viewtopic.php?pid=2083439#p2083439
2024-01-05 11:21:02 +01:00
Maximilian Bosch
8bc5104a6e treewide: refactor .attrs.sh detection
When specifying the `builder` attribute in `stdenv.mkDerivation`, this
will be effectively transformed into

    builtins.derivation {
      builder = stdenv.shell;
      args = [ "-e" builder ];
    }

This also means that `default-builder.sh` is never sourced and as a
result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct
location[1].

Also, we need to source `.attrs.sh` to source `$stdenv`. So, the
following is done now:

* If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it.
  Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage
  (see previous commit for more context), so prefer the environment
  variable if possible.

* Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this
  can happen.

* If neither applies, it can be assumed that `__structuredAttrs` is
  turned off and thus nothing needs to be done.

[1] It's possible that it doesn't exist at all - in case of Nix 2.3 or
    it can point to a wrong location on older Nix versions with a bug in
    `__structuredAttrs`.
2023-10-04 18:36:57 +02:00
Kiskae
877980c410 linuxPackage.nvidia_x11*: Remove another nvidia-settings library 2023-08-14 18:40:50 +02:00
Gerg-L
4ca2a16390 nixos/nvidia: add Dynamic Boost support 2023-08-03 09:32:14 -04:00
Kiskae
c79b173db5 linuxPackages.nvidia_x11_beta: fix optix denoiser
OptiX tries loading `$ORIGIN/nvoptix.bin` before
`/usr/share/nvidia/nvoptix.bin`.

Additionally OptiX isn't supported for 32-bit.
2023-06-05 19:49:17 +02:00
Kiskae
99b7ee661b linuxPackages.nvidia_x11_beta: install nvoptix.bin 2023-05-30 20:22:39 +02:00
Kiskae
91f99f14ff linuxPackages.nvidia_x11: add support for zstd compression 2023-03-24 11:35:55 +01:00
Artturin
c01f509e44 treewide: source .attrs in builders
if theres a source $stdenv then this is needed

for structuredAttrs
2022-12-08 21:09:02 +02:00
Kiskae
51f84cafdd linuxPackages.nvidia_x11_beta: 515.43.04 -> 525.53 2022-11-11 15:31:21 +01:00
Nick Cao
686ac5bf4d linuxPackages.nvidia_x11: fix build of versions without nvngx.dll 2022-07-15 10:38:48 +08:00
Luna Nova
afd8c1ca50 linuxPackages.nvidia_x11: fix build failure due to wrong install args
Fixes https://github.com/NixOS/nixpkgs/pull/179355
2022-07-10 21:59:01 -07:00
Torsten Schmits
160aaf5dd3 nvidia-driver: Install windows libraries needed by Proton to support DLSS
See https://github.com/NixOS/nixpkgs/issues/177533
2022-06-28 19:04:47 +02:00
Nick Cao
94f5bd2051 nvidia_x11: init opensource kernel driver 2022-06-03 10:50:33 +08:00
Robert Glossop
1f2535dcd8 nvidia-x11: Package nvidia-bug-report.sh
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-05-13 16:49:18 -05:00
Jonathan Ringer
26c6b2eb79 linuxPackages.nvidia_x11: fix vulkan icd installation paths 2022-02-24 08:59:12 -08:00
Jonathan Ringer
1da4e07ea6 linuxPackage.nvidia_x11: suffix x86_64 vulkan icd
This matches mesa behavior
2022-02-05 14:00:47 -08:00
Cole Mickens
59a7fb27a1 nvidia: install egl wayland gbm support 2021-10-20 20:31:38 -07:00
Cole Mickens
216dd5b740 nvidia: fix egl-wayland loading 2021-10-20 15:19:06 -07:00
Bernardo Meurer
19e4afc912 linuxPackages.nvidia-x11: use makeFlags in builder.sh 2021-08-30 17:06:12 -07:00
André Vitor de Lima Matos
3f4bb8ff5a nvidia_x11: fix suspend script paths since 470.57.02 (#131838)
nvidia 470.57.02 changed the path of `nvidia-sleep.sh` and systemd
scripts, making `builder.sh` miss them and suspend-to-ram on systems
where `hardware.nvidia.powerManagement.enable = true` is set fail.
2021-08-02 13:42:47 -04:00
Abdelhakim Qbaich
e1e1f539f0 nvidia-x11: compile nvidia-uvm.ko with HMM support 2021-07-14 00:24:54 -07:00
ilian
d3b3fa80a9 nvidia-x11: ignore linux-rt sanity check
Ignore the sanity check that prevents the Nvidia drivers from
being built for kernels with real-time patches.
Even though the driver might not be officially supported by
Nvidia for linux-rt, it seems to work without issues.
Attempting to install the driver for linux-rt fails with the
following error message:

The kernel you are installing for is a PREEMPT_RT kernel!

The NVIDIA driver does not support real-time kernels. If you
are using a stock distribution kernel, please install
a variant of this kernel that does not have the PREEMPT_RT
patch set applied; if this is a custom kernel, please
install a standard Linux kernel.  Then try installing the
NVIDIA kernel module again.

*** Failed PREEMPT_RT sanity check. Bailing out! ***
2021-01-24 23:15:24 +01:00
Edmund Wu
0f322400ea nvidia_x11: fix vulkan icd filename 2020-11-16 14:04:16 -05:00
Edmund Wu
9a269f555a nixos/nvidia: include systemd power management 2020-05-10 11:25:50 -04:00
gnidorah
d48ed3b9e5 nvidia_x11: fix *nvidia*.so* references 2019-12-10 11:35:30 -05:00
Ambroz Bizjak
d156b2b619 nvidia-x11: Make vulkan library path absolute for >= 435.
The original file contains just a library name, which does not work when LD_LIBRARY_PATH does not contain /run/opengl-driver/lib, as is the case in unstable NixOS.

Fixes https://github.com/NixOS/nixpkgs/issues/69264
2019-10-02 10:09:50 +03:00
Averell Dalton
af39568c3a nvidia_x11: fix for vulkan in >= 435 2019-09-06 21:18:49 +02:00
Matthew Bauer
87ec2627b0 Merge pull request #62870 from ambrop72/nvidia-icd-absolute
nvidia-x11: Put absolute library paths into ICD config files.
2019-07-10 17:37:00 -04:00
Ambroz Bizjak
d1226bff8e nvidia-x11: Set 32-bit library paths for 32-bit libraries.
Patchelf was being called to point RUNPATH to 64-bit library paths even for 32-bit libraries.
2019-06-15 10:54:50 +02:00
Ambroz Bizjak
a4de5673de nvidia-x11: Put absolute library paths into ICD config files. 2019-06-08 20:34:27 +02:00
Dmitry Kalinkin
0baa7c90c6 Merge pull request #56211 from eadwu/nvidia_x11/2019-02-22
nvidia_x11: 2019-02-22
2019-03-06 21:10:22 -05:00
Averell Dalton
d6c2fe76ed nvidia-docker: init at 2.0.3
nvidia_x11 and persistenced were modified to provide binaries which can be
mounted inside a docker-container to be executed there.

most ldconfig-based discovery of bundled nvidia libraries is patched out

ldconfig itself is patched to be able to deal with patchelf'ed libraries
See https://sourceware.org/bugzilla/show_bug.cgi?id=23964
2019-02-27 09:56:03 +01:00
Edmund Wu
48e66e5184 nvidia_x11: 415.27 -> 418.43 2019-02-22 13:00:19 -05:00
Edmund Wu
ee32fa9b0d nvidia_x11: 410.78 -> 415.25 2019-01-13 09:37:06 +01:00
Edmund Wu
21bb1fa004 nvidia_x11_beta: reinit at 410.57 2018-10-17 19:30:44 -04:00
dukzcry
9645c867a3 nvidia-x11: pass kernel.modDirVersion 2018-06-24 11:49:48 +03:00
Jan Solanti
4ec3d311cb nvidia-x11: generate nvidia_icd.json from template 2017-09-26 21:53:44 +02:00
Kosyrev Serge
d860a68fd0 nvidia-x11: $bin can be empty 2017-03-19 05:29:57 +03:00
Nikolay Amiantov
22750b36fd nvidia: support application profiles
Closes #22666.
2017-02-19 19:46:01 +03:00
Jude Taylor
c3e3b6a19a nvidia-x11: fix parallel building variable name 2017-02-11 14:29:37 -08:00