error: attribute 'buildDTBs' missing
Open
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 628
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100