error: attribute 'buildDTBs' missing

オープン
#190 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.


主要言語
Nix
スター
627
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

snowfallorg/lib のほかの issue

snowfallorg/lib の issue をすべて見る

似ている issue

Operating Systems の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。