!UNVBThoJtlIiVwiDjU:nixos.org

Staging

368 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.11 | Review Reports: https://malob.github.io/nix-review-tools-reports/117 Servers

Load older messages


SenderMessageTime
22 Apr 2026
@raitobezarius:matrix.orgraitobezarius f pkgs pkgs → f pkgs.stdenv.__bootPackages pkgs → f (pkgs.stdenv.__bootPackages).stdenv.__bootPackages pkgs.stdenv.__bootPackages → ... until we find a pkgs` for which the host platform is not Darwin (i.e. cross compilation mode) OR we found the root stage0 of Darwin, that's the intent right? 12:19:14
@raitobezarius:matrix.orgraitobezarius and prev.darwin.sourceRelease is a function 12:20:57
@raitobezarius:matrix.orgraitobezarius why the trace is in pkgsExtraHardening ? 12:22:06
@raitobezarius:matrix.orgraitobezarius
       … while evaluating the attribute 'stdenv.__bootPackages'
         at /nix/store/phggf546c3ig9x349z4rf0qr4ckdci62-source/pkgs/top-level/variants.nix:161:11:
          160|           pkgsExtraHardening = super';
          161|           stdenv = super'.withDefaultHardeningFlags (
             |           ^
          162|             super'.stdenv.cc.defaultHardeningFlags

       error: attribute '__bootPackages' missing
       at /nix/store/phggf546c3ig9x349z4rf0qr4ckdci62-source/pkgs/os-specific/darwin/by-name/av/AvailabilityVersions/package.nix:17:9:
           16|     else
           17|       f pkgs.stdenv.__bootPackages pkgs;
             |         ^
           18|   bootstrapSourceRelease = f pkgs pkgs;
12:22:14
@raitobezarius:matrix.orgraitobezarius that top frame is evaluating a stdenv of the new top level pkgsExtraHardening 12:22:25
@raitobezarius:matrix.orgraitobezariusis this used in the Darwin bootstrapping?12:22:31
@raitobezarius:matrix.orgraitobezariusok12:23:37
@raitobezarius:matrix.orgraitobezariusI found a shorter reproducer on CppNix12:23:42
@raitobezarius:matrix.orgraitobezarius pkgs.pkgsExtraHardening on CppNix 12:23:47
@raitobezarius:matrix.orgraitobezariusOK, I think I understand what is going on12:27:42
@raitobezarius:matrix.orgraitobezarius Lix won't fail on evaluating pkgs.pkgsExtraHardening but will fail on pkgs.pkgsExtraHardening.stdenv 12:27:57
@raitobezarius:matrix.orgraitobezariusLooks like a forcing/laziness issue somewhere12:28:11
@raitobezarius:matrix.orgraitobezarius So, first of all, withDefaultHardeningFlags do not return a correctly formed stdenv with __bootPackages and that's arguably a pkgsExtraHardening bug 12:28:43
@raitobezarius:matrix.orgraitobezariusSecond, I think we need to rule out should Lix force more thunks here or should CppNix force less thunks12:29:07
@raitobezarius:matrix.orgraitobezarius If Lix can produce a list of attribute keys for pkgs.pkgsExtraHardening but CppNix cannot, either Lix is making up keys that cannot be calculated or CppNix is not lazy enough with respect to the attrset spine thingie 12:29:58
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Maybe easier to compare Lix 2.93/94?12:30:35
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Those should differ too and it might be easier to gauge whether those differ intentionally 12:30:56
@raitobezarius:matrix.orgraitobezariusMeh I'm sure we will fall in the pointer tagging change and this won't help me understanding what is going on12:31:03
@raitobezarius:matrix.orgraitobezariusI will try analyzing the forcing logic just by reading the frames12:31:31
@raitobezarius:matrix.orgraitobezariusand if I fail, I will think about something else12:31:35
@raitobezarius:matrix.orgraitobezariusfound a nicer reproducer12:49:45
@raitobezarius:matrix.orgraitobezarius nix-instantiate --eval -E 'import ./. { system = "x86_64-darwin"; allowAliases = false; overlays = [ (self: super: { stdenv = super.stdenv.override {}; }) ]; }' 12:49:50
@raitobezarius:matrix.orgraitobezariusCppNix explodes immediately, Lix produces a result12:49:57
@emilazy:matrix.orgemily(nothing better than a language without semantics)12:51:55
@raitobezarius:matrix.orgraitobezariuslet's be even more precise12:52:06
@raitobezarius:matrix.orgraitobezarius nix-instantiate --eval -E 'import ./. { system = "x86_64-darwin"; allowAliases = false; overlays = [ (self: super: { stdenv = super.stdenv // { __bootPackages = throw "bye"; }; }) ]; }' also differs in evaluation 12:52:10
@raitobezarius:matrix.orgraitobezarius it feels like what trips up the __bootPackages is the series of asserts inside the darwin/default.nix entrypoint 12:52:40
@raitobezarius:matrix.orgraitobezariusbut I don't know if this needs to be forced to know the list of package names12:52:58
@raitobezarius:matrix.orgraitobezariusOn a conceptual level, no package name depends on the actual state of stdenv12:53:48
@raitobezarius:matrix.orgraitobezariusThere's no true evaluation bug because CppNix and Lix agrees that pkgs.pkgsExtraHardening.stdenv is cooked12:54:11

Show newer messages


Back to Room ListRoom Version: 6