Context
No response
Bug description
When using the default overlay, I'm seeing the captioned error when trying to nixos-rebuild after upgrading from NixOS 23.11 to 24.05. I noticed that this pr mentioned the same issue, which was supposed to be fixed by this commit, but unfortunately I'm still seeing it on the latest main branch.
error:
… while calling the 'head' builtin
at /nix/store/x6x48p4sc7x620zng1iqx4hikffnp32z-source/lib/attrsets.nix:1575:11:
1574| || pred here (elemAt values 1) (head values) then
1575| head values
| ^
1576| else
… while evaluating the attribute 'value'
at /nix/store/x6x48p4sc7x620zng1iqx4hikffnp32z-source/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'i686-linux' missing
at /nix/store/221mhp3nr67c41c7k4dhxkh9mmh88rhm-source/pkgs/default.nix:11:5:
10| in
11| self.packages.${system};
| ^
12|
I've managed to work around this for now by patching pkgs/default.nix:
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -8,7 +8,7 @@
flake.overlays.default = _final: prev: let
inherit (prev.stdenv.hostPlatform) system;
in
- self.packages.${system};
+ self.packages.${system} or {};
Steps to reproduce
- "ethereum-nix.overlays.default" overlay in the NixOS configuration
- Upgrade to 24.05
- Rebuild
Before submitting
Context
No response
Bug description
When using the default overlay, I'm seeing the captioned error when trying to nixos-rebuild after upgrading from NixOS 23.11 to 24.05. I noticed that this pr mentioned the same issue, which was supposed to be fixed by this commit, but unfortunately I'm still seeing it on the latest main branch.
I've managed to work around this for now by patching
pkgs/default.nix:Steps to reproduce
Before submitting