Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Package (nvidia-x11-560.35.03-6.12.1) #21

Open
cyberkek587 opened this issue Dec 5, 2024 · 5 comments
Open

Broken Package (nvidia-x11-560.35.03-6.12.1) #21

cyberkek587 opened this issue Dec 5, 2024 · 5 comments

Comments

@cyberkek587
Copy link

During the process, the following error was raised regarding the nvidia-x11-560.35.03-6.12.1 package:

• Added input 'nixpkgs':
    'github:NixOS/nixpkgs/55d15ad12a74eb7d4646254e13638ad0c4128776?narHash=sha256-M1%2BuCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo%3D' (2024-12-03)
warning: Git tree '/home/cyberkek/NixOS-Hyprland' is dirty
building the system configuration...
warning: Git tree '/home/cyberkek/NixOS-Hyprland' is dirty
error:
       … while calling the 'head' builtin
         at /nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'
         at /nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `system.systemBuilderArgs':

       … while evaluating definitions from `/nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/nixos/modules/system/activation/activatable-system.nix':

       … while evaluating the option `system.activationScripts':

       … while evaluating definitions from `/nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/nixos/modules/services/hardware/udev.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Package ‘nvidia-x11-560.35.03-6.12.1’ in /nix/store/vqhkmj60457j8nrw9vb94ln40rkic1p6-source/pkgs/os-specific/linux/nvidia-x11/generic.nix:278 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.
@R1YMOLIM
Copy link

R1YMOLIM commented Dec 7, 2024

Just in NixOS-Hyprland/hosts/default/config.nix type nixpkgs.config.allowBroken = true;

@R1YMOLIM
Copy link

R1YMOLIM commented Dec 7, 2024

If it help pls tell me

@cyberkek587
Copy link
Author

Got errors when building.

error: builder for '/nix/store/f6mfm0wbq3fj8jn5r1hhwflijgcpfqfp-nvidia-x11-560.35.03-6.12.1.drv' failed with exit code 2;
       last 25 log lines:
       >  1087 | struct nvkms_per_open *nvkms_open_common(enum NvKmsClientType type,
       >       |                        ^~~~~~~~~~~~~~~~~
       > /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-modeset/nvidia-modeset-linux.c:1139:6: warning: no previous prototype for 'nvkms_close_pm_locked' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmissing-prototypes-Wmissing-prototypes8;;]
       >  1139 | void nvkms_close_pm_locked(struct nvkms_per_open *popen)
       >       |      ^~~~~~~~~~~~~~~~~~~~~
       > /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-modeset/nvidia-modeset-linux.c:1202:5: warning: no previous prototype for 'nvkms_ioctl_common' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmissing-prototypes-Wmissing-prototypes8;;]
       >  1202 | int nvkms_ioctl_common
       >       |     ^~~~~~~~~~~~~~~~~~
       >   CC [M]  /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-drm/nvidia-drm-utils.o
       > /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-drm/nvidia-drm-drv.c:211:6: error: 'const struct drm_mode_config_funcs' has no member named 'output_poll_changed'
       >   211 |     .output_poll_changed = nv_drm_output_poll_changed,
       >       |      ^~~~~~~~~~~~~~~~~~~
       > /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-drm/nvidia-drm-drv.c:211:28: error: initialization of 'struct drm_atomic_state * (*)(struct drm_device *)' from incompatible pointer type 'void (*)(struct drm_device *)' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;]
       >   211 |     .output_poll_changed = nv_drm_output_poll_changed,
       >       |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
       > /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-drm/nvidia-drm-drv.c:211:28: note: (near initialization for 'nv_mode_config_funcs.atomic_state_alloc')
       > cc1: some warnings being treated as errors
       > make[4]: *** [/nix/store/f31iqfgrv2anmwcqa3wkm6ml0snl4p5h-linux-6.12.1-dev/lib/modules/6.12.1/source/scripts/Makefile.build:229: /build/NVIDIA-Linux-x86_64-560.35.03/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1
       > make[4]: *** Waiting for unfinished jobs....
       > make[3]: *** [/nix/store/f31iqfgrv2anmwcqa3wkm6ml0snl4p5h-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:1936: /build/NVIDIA-Linux-x86_64-560.35.03/kernel] Error 2
       > make[2]: *** [/nix/store/f31iqfgrv2anmwcqa3wkm6ml0snl4p5h-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:224: __sub-make] Error 2
       > make[2]: Leaving directory '/nix/store/f31iqfgrv2anmwcqa3wkm6ml0snl4p5h-linux-6.12.1-dev/lib/modules/6.12.1/build'
       > make[1]: *** [Makefile:224: __sub-make] Error 2
       > make[1]: Leaving directory '/nix/store/f31iqfgrv2anmwcqa3wkm6ml0snl4p5h-linux-6.12.1-dev/lib/modules/6.12.1/source'
       > make: *** [Makefile:89: modules] Error 2
       For full logs, run 'nix log /nix/store/f6mfm0wbq3fj8jn5r1hhwflijgcpfqfp-nvidia-x11-560.35.03-6.12.1.drv'.
error: 1 dependencies of derivation '/nix/store/4rs8qch8i6vc06bv60nd91wb0wr6xlyi-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pgyqa21sr6n1mr24ajcdp3yndzi95y1x-firmware.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9qx67wm67mq2wxpsg5l49brxzggdizw9-linux-6.12.1-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/djnfah7spgpabczl3a1mvwrvl27b4jxa-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qg3mk8nrw5f0vbmwd5l3w1wnd3dw21q7-nixos-system-default-25.05.20241205.d0797a0.drv' failed to build

@R1YMOLIM
Copy link

R1YMOLIM commented Dec 8, 2024

I had no idea how I can help you but may you try download Nvidia in nix-env? But this comment

@R1YMOLIM
Copy link

R1YMOLIM commented Dec 8, 2024

Example
nix-env -iA nixos.linuxKernel.packages.linux_latest_libre.nvidia_x11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants