Repository navigation
refactor(image): evict perl via neovim without wl-clipboard - #1128
Merged
Merged
Conversation
After #1107 swapped full git for gitMinimal, perl 5.42.0's sole image anchor was neovim -> wl-clipboard -> xdg-utils -> perl. The nixpkgs neovim wrapper bakes wl-clipboard as the Wayland clipboard provider, which is dead code in a headless container; nvim >= 0.10 uses OSC52 natively over VS Code remote / SSH. Re-wrap neovim-unwrapped with wrapNeovimUnstable and waylandSupport = false for the image only (dev-shell keeps stock neovim via devTools), evicting the wl-clipboard -> xdg-utils -> perl subtree (~108 MiB). With perl gone from the closure, delete its 5.42.0 CVE exception batch from .vulnixignore (CVE-2026-4176, CVE-2026-13221, CVE-2026-57432) instead of maintaining it pending an upstream stable fix (cf. #1097/#1098). Refs: #1108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Final cut of epic #1103. After #1107 swapped full git for
gitMinimal, perl5.42.0's sole remaining anchor was
neovim → wl-clipboard → xdg-utils → perl— the nixpkgs neovim wrapper suffixeswl-clipboardas the Waylandclipboard provider, dead code in a headless container (no Wayland socket; the
clipboard that actually works over VS Code remote / SSH is OSC52, native in
nvim ≥ 0.10).
The stock wrapper exposes no
waylandSupportknob via.override, so the imagegets a
wrapNeovimUnstable pkgs.neovim-unwrappedrewrap replicating the legacydefaults (
legacyWrapper = truekeeps the stock provider-disabling rc) withwaylandSupport = false. Image-scoped via the established filter pattern —devTools/dev-shell keep the stock wrapped neovim, including itslowPrio(replicated, since devTools relies on it for the
vigos.editorcollision rule,#824).
Security payoff: with perl out of the closure, the perl 5.42.0 CVE
exception batch in
.vulnixignore(#1097/#1098, "pending upstream stable fix")is deleted (38 lines:
CVE-2026-4176, and the perl-only triage block withCVE-2026-13221/CVE-2026-57432) instead of being maintained. Sharedexpiration headers and co-located non-perl entries kept intact;
check-expirationshook passes.Evidence (independently re-verified)
estimated ~55–60; the full perl-module stack + wl-clipboard + xdg-utils came
out with it)
nix path-info -r | grep -iE 'perl|wl-clipboard|xdg-utils'→ EMPTY(baseline had 33 such paths)
nvim --version→NVIM v0.12.3;--headless +qexits 0; the wrapperscript contains zero wl-clipboard/xdg-utils references; under a clean PATH
:checkhealthreports the benign "No clipboard tool found" (OSC52 territory),no crash
variant; no nvim config sets a clipboard provider
prek run --all-files, exit 0)Part of epic #1103 (sub-issue 5/5 — completes the epic).
Closes #1108