treewide: handle *Phases variables __structuredAttrs-agnostically (round 2)#352709
Conversation
160b7f1 to
292a749
Compare
wolfgangwalther
left a comment
There was a problem hiding this comment.
I think we should not introduce any new helper to stdenv here, but instead fix the 4 cases "properly" as suggested in the other comments. This will remove all those hacks depending on order of the preXPhases.
I opened #360450 to address those special cases. If we do this, then we don't need introduce any new helpers here. |
292a749 to
2db8439
Compare
@wolfgangwalther Thank you for fixing them. I dropped the commits already adjusted by #360450. |
|
There are still a lot of rebuilds. I'll re-target this feature branch to staging. |
2db8439 to
01dc95c
Compare
|
The build logs don't show why OfBorg failed to build the package tests, and I cannot reproduce such failures on my laptop (all built successfully). |
I looked through the failures / logs. Some seem to be timeouts, some failing dependencies, e.g. diffoscope (for which I had observed build failures on staging lately, too). None of that seems related to the changes here. |
|
Successfully created backport PR for |
This PR clears the remaining non-
__structuredAttrs-agnostic appending to the*Phaselist not caught by #339117.For the "insert the new phase before certain phase" operation, this commit adds a new Bash function
replaceElementtosetup.shto provide a more graceful solution to the string-replacement hack in #339117 and previous implementations. (Previous discussion: #339117 (comment)).Cc: @philiptaron @wolfgangwalther
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.