You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Some messing around with this, it appears to be a bug in NixOS itself. Something like import <nixpkgs> { overlays = [(_: prev: builtins.trace prev.stdenv.hostPlatform.system {} ]; } works perfectly well and prints the correct system. However if you try to make a simple NixOS config containing nixpkgs.overlays with the same debug overlay, with NixOS 23.11 it works as expected however starting in NixOS 24.05, for some reason the hostplatform just gets randomly changed to i686-linux.
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
The text was updated successfully, but these errors were encountered: