Update issues - evaluation warning and nvidia-470.256.02-7.2.2.drv

Hello eveerybody!
I tried to update system, but ran with a few issues.

First:
evaluation warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
evaluation warning: stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead

Second:
error: Cannot build ‘/nix/store/sxkhlshlzypl6s0ng7817ljab0ld0xxc-nvidia-kernel-modules-470.256.02-7.2.2.drv’.
Reason: builder failed with exit code 2.

About first issue - I looked here and there and found theme “How to fix ‘evvaluation warning’”. I tried to change flake.nix file according to that guide, but the problem remains the same. And I don’t have Mac - I have an old desktop, with old videocard Nvidia GT-710 Kepler.

As for second issue - I have no idea what is the problem because I had never had such warnings before. In my configuraion.nix file I have this line:
boot = kernelPackages = pkgs.linuxPackages_latest;

Please, help me to solve these issues so that I may update my system smoothly as it was all that time since I’m using it.
Thank you for your help.

We would need to see the full errors not just the partial error messages you wrote here, especially for the second issue.

Also, use triple-backticks (on their own lines) for code blocks, error messages, etc.


building the system configuration…
evaluation warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
evaluation warning: stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead
error: Cannot build ‘/nix/store/sxkhlshlzypl6s0ng7817ljab0ld0xxc-nvidia-kernel-modules-470.256.02-7.2.2.drv’.
Reason: builder failed with exit code 2.
Output paths:
/nix/store/l2cx32vy9qyvrd0gdl6kg8rq3fa7vn9a-nvidia-kernel-modules-470.256.02-7.2.2
Last 25 log lines:
> make[4]: *** Waiting for unfinished jobs…
> nvidia/nv-ibmnpu.c:404:6: warning: no previous prototype for ‘nv_init_ibmnpu_info’ [-Wmissing-prototypes]
>   404 | void nv_init_ibmnpu_info(nv_state_t *nv)
>       |      ^~~~~~~~~~~~~~~~~~~
> nvidia/nv-ibmnpu.c:408:6: warning: no previous prototype for ‘nv_destroy_ibmnpu_info’ [-Wmissing-prototypes]
>   408 | void nv_destroy_ibmnpu_info(nv_state_t *nv)
>       |      ^~~~~~~~~~~~~~~~~~~~~~
> nvidia/nv-ibmnpu.c:412:5: warning: no previous prototype for ‘nv_init_ibmnpu_devices’ [-Wmissing-prototypes]
>   412 | int nv_init_ibmnpu_devices(nv_state_t *nv)
>       |     ^~~~~~~~~~~~~~~~~~~~~~
> nvidia/nv-ibmnpu.c:417:6: warning: no previous prototype for ‘nv_unregister_ibmnpu_devices’ [-Wmissing-prototypes]
>   417 | void nv_unregister_ibmnpu_devices(nv_state_t *nv)
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> nvidia/nv-ibmnpu.c:437:5: warning: no previous prototype for ‘nv_get_ibmnpu_chip_id’ [-Wmissing-prototypes]
>   437 | int nv_get_ibmnpu_chip_id(nv_state_t *nv)
>       |     ^~~~~~~~~~~~~~~~~~~~~
> nvidia/nv-ibmnpu.c:446:6: warning: no previous prototype for ‘nv_ibmnpu_cache_flush_numa_region’ [-Wmissing-prototypes]
>   446 | void nv_ibmnpu_cache_flush_numa_region(nv_state_t *nv)
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[3]: *** [/nix/store/yxq95msqp4lwb1wa44jcdwf7998170mi-linux-7.2.2-dev/lib/modules/7.2.2/source/Makefile:2187: .] Error 2
> make[2]: *** [/nix/store/yxq95msqp4lwb1wa44jcdwf7998170mi-linux-7.2.2-dev/lib/modules/7.2.2/source/Makefile:248: __sub-make] Error 2
> make[2]: Leaving directory ‘/build/nvidia-x11-470.256.02-modsrc’
> make[1]: *** [Makefile:248: __sub-make] Error 2
> make[1]: Leaving directory ‘/nix/store/yxq95msqp4lwb1wa44jcdwf7998170mi-linux-7.2.2-dev/lib/modules/7.2.2/source’
> make: *** [Makefile:80: modules] Error 2
For full logs, run:
nix log /nix/store/sxkhlshlzypl6s0ng7817ljab0ld0xxc-nvidia-kernel-modules-470.256.02-7.2.2.drv
error: Cannot build ‘/nix/store/b6ysyy14bxa8m4slgryiyqrp7j3pf0gn-linux-7.2.2-modules.drv’.
Reason: 1 dependency failed.
Output paths:
/nix/store/xfkzr8idqqg2pgyr4fxdkzz8pz1xd9v4-linux-7.2.2-modules
error: Cannot build ‘/nix/store/57y09hm018z7dkinpn4w5d9nc9jil0xi-nixos-system-marol-26.11.20260902.3ed67ec.drv’.
Reason: 1 dependency failed.
Output paths:
/nix/store/7drgphicw0wfl6wpvbjsz7djxm4xd10m-nixos-system-marol-26.11.20260902.3ed67ec
Command ‘nix --extra-experimental-features ‘nix-command flakes’ build --print-out-paths ‘/etc/nixos#nixosConfigurations.“marol”.config.system.build.toplevel’ --no-link’ returned non-zero exit status 1.

I did nix log /nix/store/sxkhlshlzypl6s0ng7817ljab0ld0xxc-nvidia-kernel-modules-470.256.02-7.2.2.drv

But I don’t know how to post it here.

Until the module has been updated for Linux 7.2, your options are to either downgrade to Linux 6.18 (The latest LTS kernel) or use Nouveau.

I have kernel version 7.1.6 and nvidia drivers updated and worked fine. So, maybe I should update kernel to 7..2.2?

The issue is that the 470 Nvidia kernel modules are not currently compatible with Linux 7.2.x, as Linux 7.1.x is now EOL, the latest kernel the 470 Nvidia kernel modules support is Linux 6.18.x[1].


  1. It actually doesn’t support anything past 6.1, however support for later kernels has been patched in ↩︎

Thank you, MaxHearnden!
So, I have no option to update my system, unless downgrade Linux kernel to 6.18 LTS? What if to change video card? For example, Radeon RX570?

You do have the option of using Nouveau by removing "nvidia" from services.xserver.videoDrivers. Nouveau has similar features to the Nvidia kernel modules.

AMD graphics cards are fully supported by Linux 7.2 (no out of tree modules required).

1 Like

I did, but after update X doesn’t start. So I had to reboot into the last generation.

  $ Last version that supports Kepler GPUs
  hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
  
  $ Enable OpenGL
  hardware.graphics = {
    enable = true;
    enable32Bit = true;
  };

  $ Enable Nvidia hardware
  hardware.nvidia = {
    modesetting.enable = true;
    powerManagement.enable = false;
    powerManagement.finegrained = false;
    open = false;
    nvidiaSettings = true;
  };

  $ services.xserver.videoDrivers = [ "modesetting" ];
  services.xserver.videoDrivers = [ "nouveau" ];

After some attempts I rolled back to Linux 6.18.48 and made some changes in the configuration file… So now everything is working and I’m thinking to replace gt710 to amd rx570 (4Gb).

Question: shuold I add to the configuration file kernel modules nvidiafb, nouveau, nvidia_drm? Or they had been installed by default?