Skip to content

chore(deps): remove the nixpkgs-25 regex-pcre pkg-config/pcre override once stock regex-pcre builds at the channel rev #5447

Open

Description

@dezren39

Context

The 2026-11-04 nixpkgs update (tracking: #2715) moves nixpkgs-25 e7439b6b -> 1d060086 (the Hydra-gated nixos-unstable channel revision). At the new revision, haskellPackages.regex-pcre (pulled into the amd system closure via haskellPackages.misfortune in nixos/environment/default.nix) is marked broken under nixpkgs' problems framework, and the marking is honest: with the broken flag warned through, its build fails deterministically in the configure phase --

Error: [Cabal-7620]
The program 'pkg-config' version >=0.9.0 is required but it could not be found.

nixpkgs' Haskell builder no longer adds the pkg-config wrapper (or the pkgconfig-depends libraries) to Haskell build environments -- the same mechanism the 2026-10-30 run hit on the master pin (that instance is tracked in #3906). Drew ruled on 2026-11-04 ("fix it or pin misfortune") to revive the #3906-class override for the nixpkgs-25 segment rather than keep the input frozen.

The temporary override

nixos/environment/default.nix extends the raw nixpkgs-25 legacyPackages segment with an overlay that overrides haskellPackages.regex-pcre to append pkg-config to its nativeBuildInputs and a minimal vendored pcre 8.45 (the version the old pins shipped; test suite disabled) to its buildInputs, restoring the old build environment for this one package. A problems handler scoped to regex-pcre warns the broken marking through so the overridden derivation can evaluate.

Removal condition

Remove the override when the stock (un-extended) nixpkgs-25 segment's haskellPackages.regex-pcre builds at the then-current channel pin -- i.e. it is no longer marked broken, or warned through it builds because nixpkgs' Haskell builder once again provides pkg-config in its build environment -- or when regex-pcre/misfortune leaves the amd closure (for example if the nixpkgs-25 pin exception from #3327 is retired entirely).

Removal test

Revert the segment in nixos/environment/default.nix to the raw inputs.nixpkgs-25.legacyPackages and remove the override binding, then build the segment's haskellPackages.misfortune (which realises regex-pcre) and the full amd toplevel; both must succeed.

Acceptance criteria

  • The removal condition is verified, not assumed: the stock nixpkgs-25 haskellPackages.regex-pcre at the current pin is not refused for broken problems and realises successfully, OR regex-pcre/misfortune has left the amd closure.
  • If the condition holds: the override in nixos/environment/default.nix is removed and both the segment's haskellPackages.misfortune and the full amd toplevel build succeed.
  • If the condition does not hold yet: the check result (date + nixpkgs-25 revision + what was observed) is recorded on this issue and the override stays.

Activity

  1. developing-today commented on Nov 4, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Override landed 2026-11-04 with PR #5453 (merged, merge commit 44b2dd56e), under Drew's ruling on #2715. The nixpkgs-25-fixed binding is live on main in nixos/environment/default.nix; its comment names this issue, #2715, the removal condition, and the removal test stated here. Verified at landing: the toplevel closure carries the overridden regex-pcre drv (5xl002q8..., solo-realised, store-valid) and the full amd toplevel built from the committed tree (output jiz6p50b..., hash sha256:087qi62555v3155jdw59x50wyi5mk3kj8cwk5ap2brgrg28fzb9d). This issue stays open until the removal condition is verified at a future nixpkgs-25 pin.

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

    • task: 10042
    • state: picked_up
    • lane: code-h (direct)
    • summary: Triage of the nixpkgs-25 regex-pcre override removal condition at current main. Override is live in nixos/environment/default.nix (nixpkgs-25-fixed binding) and the nixpkgs-25 pin is still 1d060086 — the same rev the override was created for. Verifying the stock segment's regex-pcre broken status at that pin before routing.
  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

    • task: 10042
    • state: done (triaged)
    • lane: code-h (direct)

    Triage check 2026-11-05 (task 10042): removal condition does NOT hold yet — override stays.

    Evidence, verified at current main (laptop ~/git/code on main @ 04f7869, matching origin):

    • flake.lock nixpkgs-25 pin is still 1d060086d60cb76a40cf37109f979d88a5bd6396 — unchanged since the override landed with PR chore(deps): nixpkgs update 2026-11-04 #5453 on 2026-11-04.
    • Stock (un-extended) segment evaluated on the laptop: nixpkgs-25.legacyPackages.x86_64-linux.haskellPackages.regex-pcre.meta.broken = true (position: pkgs/development/haskell-modules/hackage-packages.nix in that pin). So the stock segment still refuses regex-pcre for broken problems, exactly the condition the override in nixos/environment/default.nix (the nixpkgs-25-fixed binding) works around.
    • regex-pcre/misfortune has not left the amd closure: nixpkgs-25-fixed.haskellPackages.misfortune is still in the environment package list.

    Ordering / next trigger: re-check this issue when the nixpkgs-25 pin next moves (tracking: #2715) or if misfortune/regex-pcre leaves the amd closure. At that point run the removal test from the issue body (revert to raw legacyPackages, build the segment's haskellPackages.misfortune and the full amd toplevel).

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).

    Queue task(s) [10042] were marked done, and some work did land:

    No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11716.

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  8. 82 remaining items

  9. added
    queue/claimedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    queue/claimedQueue worker lifecycle state
    on Nov 9, 2026
  10. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off — task 13979, lane code-p, execution lane opencode (lane row 5297); claimant launches the bound opencode session for issue #5447.

  11. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict — removal condition checked fresh, does NOT hold; override stays

    • Agent: repo queue worker, lane code-k (repo-worker-code), task 13979 (triage of the chore(deps): remove the nixpkgs-25 regex-pcre pkg-config/pcre override once stock regex-pcre builds at the channel rev #5447 remainder after partial verification, 2026-11-10)
    • What remains of this issue: only the conditional removal. The temporary override is still present and load-bearing in nixos/environment/default.nix (problems handler config.problems.handlers."regex-pcre".broken = "warn" + the regex-pcre overrideAttrs appending pkg-config and the vendored pcre), and haskellPackages.misfortune is still in the amd closure via that file — the "left the closure" branch does not apply.
    • Removal-condition check (2026-11-10 ~21:5xZ), per this issue's acceptance: the nixpkgs-25 pin in flake.lock is 1d060086d60cb76a40cf37109f979d88a5bd6396 — unchanged from the revision the override was introduced for. Against the stock (un-extended) segment at that pin, evaluated from the pristine nixpkgs tarball: haskellPackages.regex-pcre is version 0.95.0.1 with meta.broken = true, and forcing its drvPath throws through nixpkgs' problems framework (check-meta validity assertion) — the stock package is still refused for broken problems, so warned-through or not, the first removal branch fails at the same revision.
    • Disposition: per acceptance branch 3, the check result is recorded here and the override stays. No fix packet is filed: the removal is unactionable until the nixpkgs-25 pin moves past a revision where stock regex-pcre is un-broken (or the builder restores pkg-config), or misfortune/regex-pcre leaves the amd closure. Re-run this exact check on the next nixpkgs-25 bump (tracking chore(deps): nixpkgs update blocked 2026-10-30 #2715); the removal test in the issue body (revert segment, build misfortune + full amd toplevel) applies unchanged when the condition first holds.
    • Task 13979 (triage) is complete with this verdict; issue chore(deps): remove the nixpkgs-25 regex-pcre pkg-config/pcre override once stock regex-pcre builds at the channel rev #5447 stays open as the waiting-dependency tracker.
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict — removal condition re-checked fresh at the new pin, does NOT hold; override stays

    • Agent: repo-worker-code (Muse lane any-i)
    • Session / ID: queue task 18308
    • Found via: atomic unfiltered claim in the one fleet queue (stream repo-health-code-pilot), lane any-i; lane assignment direct
    • What changed since the last check (task 13979, 2026-11-10): the nixpkgs-25 pin in flake.lock (developing-today/code) has moved: 1d060086d60c… → d5cc6833999746cffdfe0598f7bc801a57b887a9, so the removal condition needed a fresh evaluation rather than inheriting the old verdict.
    • Fresh check (this run): the override is still in place in nixos/environment/default.nix (the regex-pcre overlay + problems handler, pulling haskellPackages.misfortune into the amd closure). Against the stock (un-extended) segment at the new pin, evaluated from the pristine nixpkgs flake: haskellPackages.regex-pcre is version 0.95.0.1 with meta.broken = true (nix eval --json on legacyPackages.x86_64-linux.haskellPackages.regex-pcre at d5cc6833…). The first removal branch therefore still fails; the "left the closure" branch does not apply (misfortune is still in the closure via that file).
    • Disposition: per the issue's acceptance, the check result is recorded here and the override stays. No fix packet is filed: re-run this exact check on the next nixpkgs-25 bump (tracking chore(deps): nixpkgs update blocked 2026-10-30 #2715); the removal test in the issue body (revert the segment, build misfortune + the full amd toplevel) applies unchanged when the condition first holds. Issue stays open as the waiting-dependency tracker with its existing parked labels.
  14. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — task 19852 parked (lane any-t): removal condition re-checked at the pin — unchanged, verdict stands

    • Fresh check 2026-11-17T09:24Z: the nixpkgs-25 pin in flake.lock on origin/main is still d5cc6833999746cffdfe0598f7bc801a57b887a9 — the exact rev task 18308 evaluated at 2026-11-17T04:14Z (stock haskellPackages.regex-pcre 0.95.0.1, meta.broken = true; misfortune still in the amd closure via nixos/environment/default.nix). The pin has not moved, so that evaluation stands without re-running it: the removal condition does NOT hold and the override stays.
    • Task 19852 parks on the established resume condition: re-run the check on the next nixpkgs-25 bump (tracking chore(deps): nixpkgs update blocked 2026-10-30 #2715); when the condition first holds, the removal test in the issue body (revert the segment, build misfortune + the full amd toplevel) applies unchanged. Issue stays open as the waiting-dependency tracker.
  15. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note — fresh recheck; removal condition still does not hold

    • Rechecked 2026-11-18: issue chore(deps): remove the nixpkgs-25 regex-pcre pkg-config/pcre override once stock regex-pcre builds at the channel rev #5447 remains OPEN with status/parked and status/waiting-dependency labels.
    • flake.lock at clean main 4aa60cea2620fe96f36fc8cf8e77165d65e67d83 pins nixpkgs-25 to d5cc6833999746cffdfe0598f7bc801a57b887a9, unchanged from task 18308's fresh evaluation. That evaluation found stock haskellPackages.regex-pcre 0.95.0.1 has meta.broken = true; the issue's previous note documents the evidence.
    • The override stays. No follow-on is actionable until the nixpkgs-25 pin moves to a revision where stock regex-pcre builds, or the package leaves the amd closure. The issue remains the waiting-dependency tracker; no code changed.
  16. removed their assignment
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus/waiting-dependencyWaiting on a dependencytask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions