error: attribute 'buildDTBs' missing

Abierto
#190 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo

Línea de trabajo

Start by reproducing the reported nixos-rebuild switch --flake . failure with --show-trace, then inspect nixos/modules/hardware/device-tree.nix around line 126 and compare the referenced nixpkgs commit with the working revision. Done means the snowflake configuration evaluates and builds successfully without the missing buildDTBs error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Looks like https://github.com/NixOS/nixpkgs/commit/31d1d80b3fb5ca92da5836376cae81fa523da428 introduces a change that breaks kernel-related stuff in snowflake lib

[user@snowflakeos:/etc/nixos]$ sudo nixos-rebuild switch --flake . 
evaluation warning: fold has been deprecated, use foldr instead
building the system configuration...
evaluation warning: fold has been deprecated, use foldr instead
error:
       … while calling the 'head' builtin
         at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/lib/attrsets.nix:1719:13:
         1718|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1719|             head values
             |             ^
         1720|           else

       … while evaluating the attribute 'value'
         at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/lib/modules.nix:1149:7:
         1148|     // {
         1149|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1150|       inherit (res.defsFinal') highestPrio;

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

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

       … while evaluating the option `assertions':

       … while evaluating definitions from `/nix/store/7hlsbdxjq2mgczhlipabzn52sarzx0yd-source/nixos/modules/hardware/device-tree.nix':

       … while evaluating the option `hardware.deviceTree.enable':

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

       error: attribute 'buildDTBs' missing
       at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/nixos/modules/hardware/device-tree.nix:126:19:
          125|       enable = lib.mkOption {
          126|         default = config.boot.kernelPackages.kernel.buildDTBs;
             |                   ^
          127|         defaultText = lib.literalExpression "config.boot.kernelPackages.kernel.buildDTBs";
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '.#nixosConfigurations."snowflakeos".config.system.build.toplevel' --no-link' returned non-zero exit status 1.


Lenguaje dominante
Nix
Estrellas
627
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de snowfallorg/lib

Todos los issues de snowfallorg/lib

Issues similares

Más issues de Operating Systems

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.