Skip to content

refactor(image): evict perl via neovim without wl-clipboard - #1128

Merged
c-vigo merged 1 commit into
devfrom
feature/1108-evict-perl-neovim
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1108-evict-perl-neovim

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Final cut of epic #1103. After #1107 swapped full git for gitMinimal, perl
5.42.0's sole remaining anchor was neovim → wl-clipboard → xdg-utils → perl — the nixpkgs neovim wrapper suffixes wl-clipboard as the Wayland
clipboard 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 waylandSupport knob via .override, so the image
gets a wrapNeovimUnstable pkgs.neovim-unwrapped rewrap replicating the legacy
defaults (legacyWrapper = true keeps the stock provider-disabling rc) with
waylandSupport = false. Image-scoped via the established filter pattern —
devTools/dev-shell keep the stock wrapped neovim, including its lowPrio
(replicated, since devTools relies on it for the vigos.editor collision 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 with
CVE-2026-13221/CVE-2026-57432) instead of being maintained. Shared
expiration headers and co-located non-perl entries kept intact;
check-expirations hook passes.

Evidence (independently re-verified)

  • Closure: 1,758,754,952 → 1,645,235,648 bytes (−108.3 MiB — the issue
    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 +q exits 0; the wrapper
    script contains zero wl-clipboard/xdg-utils references; under a clean PATH
    :checkhealth reports the benign "No clipboard tool found" (OSC52 territory),
    no crash
  • No test or shipped-config changes needed: no image test asserts the wrapped
    variant; no nvim config sets a clipboard provider
  • Full hook suite green (prek run --all-files, exit 0)

Part of epic #1103 (sub-issue 5/5 — completes the epic).

Closes #1108

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
@c-vigo
c-vigo enabled auto-merge July 15, 2026 14:30
@c-vigo
c-vigo merged commit 435c62e into dev Jul 15, 2026
15 checks passed
@c-vigo
c-vigo deleted the feature/1108-evict-perl-neovim branch July 15, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant