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. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 5, 2026
  4. 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.
  5. added
    task/triage
    on Nov 5, 2026
  6. 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).

  7. removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 5, 2026
  8. 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.

  9. added
    queue/parked
    on Nov 8, 2026
  10. 101 remaining items

  11. added
    stray-work
    stray/needs-parent
    on Nov 27, 2026
  12. added
    priority/low
    on Nov 29, 2026
  13. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Blocker (named): upstream nixpkgs — the removal condition is that stock nixpkgs-25 haskellPackages.regex-pcre builds at the then-current channel pin; parked / status/waiting-dependency is accurate, retest at each nixpkgs update. Labels: added priority/low (none existed; matches the sibling removal-condition issue #4167).

  14. added
    kind/chore
    on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

    • STRENGTHS: The body is a complete removal brief: why the override exists (nixpkgs Haskell builder dropped pkg-config from build environments at the channel rev; the Cabal-7620 failure is quoted), where it lives (nixos/environment/default.nix, the nixpkgs-25 overlay extending haskellPackages.regex-pcre), and Drew's 2026-11-04 ruling that created it.
    • GAPS: It carried no kind/* label. The wait condition is external: stock haskellPackages.regex-pcre must build at the channel rev without the override.
    • FIXES I APPLIED: Added kind/chore. priority/low + status/parked + status/waiting-dependency accurately reflect the upstream wait.
    • REMAINS: Pickup when the channel rev updates: test-build stock regex-pcre; if it builds, delete the overlay override, rebuild the amd closure, and close this. No Drew decision needed.
  16. added
    effort/s
    area/nix
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no effort/* and no app//area/ label; no source/* label (filer not recorded — noted, not guessed).
    Strengths: complete removal ticket — Context with the exact configure failure, the temporary override described, and separate ## Removal condition, ## Removal test and ## Acceptance criteria sections. Labels consistent (kind/chore, priority/low, status/parked, queue/parked, status/waiting-dependency).
    Blocker recorded: upstream — removal waits until stock haskellPackages.regex-pcre builds at the nixpkgs-25 channel revision, as the title and removal condition state.
    Actions: added labels effort/s and area/nix. Priority unchanged (low — parked upstream wait).

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check — lane 0900-AA (Xaltha, 2026-11-30). Last verdict (2026-11-05) was: removal condition does NOT hold. The nixpkgs-25-fixed override is still on main (nixos/environment/default.nix). Re-testing at the current nixpkgs-25 pin via remote dispatch (run 46449688343, developing-today-forks/fleet): building stock haskellPackages.regex-pcre from the pin with no override. If it builds, I will claim and remove the override; if it still fails, the failure evidence lands here.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check result — lane 0900-AA (2026-11-30): INCONCLUSIVE, runner-side. Four remote dispatches attempted (runs 46449688343, 46451542594, 46452773672, 46453984180, developing-today-forks/fleet). The first executed and failed on mechanics (getFlake needs --impure — fixed in the retries); the three retries all died in the runner's own git/checkout steps before the command executed (/usr/local/bin/git failed with exit code 1, no command output). No premise evidence either way; the nixpkgs-25-fixed override stays.

    Wake (machine-checkable): re-run on a healthy dispatch route — nix build --impure --no-link of stock haskellPackages.regex-pcre imported from the flake's nixpkgs-25 input with no override. If it builds, removal is a small PR against nixos/environment/default.nix (drop the nixpkgs-25-fixed segment for activitywatch) + a build check of the consuming configuration.

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    P3.2 collision adjudication — Felix lane 0640-WH (claim 7283792252 on #17071): this issue carried two status labels, status/parked + status/waiting-dependency. Kept status/parked — status/parked was the final status act (2026-11-09T02:53:23Z); status/waiting-dependency was applied once on 2026-11-08 and superseded by the park. Removed status/waiting-dependency. No other labels touched; priority band unchanged.

  21. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0900-AT (Xaltha seat, wave 0900 general draw), 2026-11-30. Taking the premise re-check wake left by lane 0900-AA (comment on this issue): re-run the specified nix evaluation on the fleet dispatch route (healthy for this lane's run 46459304701 today). If the condition holds, I will land the removal PR in the same lane; if it does not, I will record the versions as evidence and release.

  22. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Premise re-check — lane 0900-AT, 2026-11-30: condition does NOT hold; the nixpkgs-25-fixed override stays.

    Ran lane 0900-AA's specified wake on a healthy dispatch route — run 46460003572 (developing-today/code @ main): nix build --impure --no-link of stock haskellPackages.regex-pcre from the flake's nixpkgs-25 input, no override. Firsthand from the run log, evaluation refuses before any build:

    error: Refusing to evaluate package 'regex-pcre-0.95.0.1' … because it has problems: - broken: This package is broken.

    The current nixpkgs-25 pin still marks regex-pcre 0.95.0.1 broken — the very marking the nixpkgs-25-fixed segment in nixos/environment/default.nix exists to warn past (plus its build-env override for the Cabal-7620 configure failure). No removal PR; claim released.

    Wake: re-run the same stock build when the nixpkgs-25 pin advances; removal is drawable only when the stock package evaluates (no broken marking) and builds.

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

    area/nixeffort/skind/chorepriority/lowqueue/parkedstatus/parkedstray-workstray/needs-parenttask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions