Skip to content

feat(nix): pinned WPE WebKit 2.54.3 for LeanUI's web view (P0) - #2353

Open
Th0rgal wants to merge 1 commit into
masterfrom
feat/wpewebkit-pinned
Open

Th0rgal wants to merge 1 commit into
masterfrom
feat/wpewebkit-pinned

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Nov 30, 2026

Copy link
Copy Markdown
Owner

What

Phase 0 of the zero-GTK LeanUI web view: a pinned WPE WebKit we build ourselves. The full plan is in docs/ui/leanui-wpe.md.

nixpkgs ships only the GTK port of WebKit (webkitgtk_*; there is no wpewebkit in the pinned rev, nixos-unstable or nixos-25.05). Ubuntu 24.04 ships no WPE WebKit either. The wpewebkit ? null argument in nix/desktop.nix was therefore always null.

  • nix/wpewebkit/package.nix:
    • Version: WPE WebKit 2.54.3, the newest stable release. The tarball's sha256 matches the published .sums.
    • Build: the same WebKit tree built as -DPORT=WPE with the WPEPlatform API (headless + Wayland; DRM off). It mirrors nixpkgs' webkitgtk_6_0 derivation, including its bubblewrap patch, which applies cleanly to 2.54.3.
    • Left out: the legacy libwpe/fdo API, introspection, documentation and WebDriver. MiniBrowser is kept as the smoke test.
  • flake.nix: a separate nixpkgs-wpe input pinned by revision in the URL. nix flake update, or omarchnix's inputs.nixpkgs.follows, never changes the WebKit derivation, so WebKit is only rebuilt on a deliberate bump.
  • .github/workflows/wpewebkit-watch.yml: a weekly check against the newest stable release on wpewebkit.org. It opens an issue when the pin is behind, so security releases are not missed; bumps stay manual PRs.
  • docs/ui/leanui-wpe.md:
    • the decisions;
    • the out-of-process architecture: an orb-webview-host process owns WebKit and GLib and talks to LeanUI over a socket, with DMA-BUF frames imported into Vulkan;
    • phases P0 to P4.

Builds happen at night on dgx-spark (aarch64, the m2air's architecture), through the wpewebkit nightly workflow in Th0rgal/omarchnix, which pushes to the OVH Nix cache.

Checks

  • nix eval .#packages.{aarch64,x86_64}-linux.wpewebkit.drvPath both evaluate.
  • The CMake configure phase was run locally in the derivation's own build environment (nix develop) on x86_64:
    • Configuring done, Generating done;
    • WPE Platform headless + Wayland ON, DRM OFF; bubblewrap sandbox, ATK, GBM, libdrm, speech and video ON;
    • targets libWPEWebKit-2.0.so.1 and bin/MiniBrowser;
    • pkg-config modules wpe-webkit-2.0, wpe-platform-{,headless-,wayland-}2.0.
  • Two dependencies missing from a plain port switch were found that way and added: fontconfig (for Skia) and pcre2 (for glib-2.0.pc).
  • The full build runs on dgx-spark via the omarchnix nightly before this is merged.

Nothing consumes the package yet; P1 adds orb-webview-host.

🤖 Generated with Claude Code

nixpkgs ships only the GTK port of WebKit and Ubuntu 24.04 ships no WPE, so the
zero-GTK web view needs its own build:

- nix/wpewebkit/package.nix: the WebKit source tree as -DPORT=WPE with the
  WPEPlatform API (headless + Wayland, DRM off), no legacy libwpe/fdo API,
  introspection, docs or WebDriver; MiniBrowser kept as the smoke test. Mirrors
  nixpkgs' webkitgtk_6_0 (same bubblewrap patch). Tarball checked against the
  published sha256. CMake configure verified locally in the derivation's env.
- flake.nix: a separate, revision-pinned `nixpkgs-wpe` input, so `nix flake
  update` or a consumer's `inputs.nixpkgs.follows` never rebuilds WebKit.
- wpewebkit-watch.yml: weekly check against the newest stable release; opens an
  issue when the pin is behind (bumps stay deliberate).
- docs/ui/leanui-wpe.md: decisions, out-of-process architecture, phases P0-P4.

The aarch64 build is produced at night on dgx-spark by the omarchnix
"wpewebkit nightly" workflow and pushed to the OVH Nix cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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