Skip to content

chatgpt: init at 26.803.81509 - #7864

Draft
whazor wants to merge 5 commits into
numtide:mainfrom
whazor:agent/chatgpt-init
Draft

chatgpt: init at 26.803.81509#7864
whazor wants to merge 5 commits into
numtide:mainfrom
whazor:agent/chatgpt-init

Conversation

@whazor

@whazor whazor commented Aug 11, 2026

Copy link
Copy Markdown

Summary

Package the official ChatGPT/Codex desktop application for x86_64 and ARM64 Linux from OpenAI's Debian releases.

The package keeps the bundled Electron/Owl runtime because the application depends on OpenAI-specific Owl APIs that are unavailable in nixpkgs Electron.

Closes #7846.

Packaging details

  • Provides Electron's GTK, NSS, audio, graphics, Wayland, PipeWire, and X11 dependencies.
  • Adds dynamically loaded graphics and display libraries through targeted runtime RPATHs.
  • Adds Qt 5 and Qt 6 RPATHs to the optional bundled shim libraries.
  • Avoids a broad LD_LIBRARY_PATH leaking into Electron subprocesses.
  • Ignores unused musl and Android prebuild dependencies plus optional Qt dependencies during ELF patching.
  • Applies a byte-length-preserving app.asar patch that prevents detect-libc from calling process.report.getReport().

The ASAR workaround prevents an intentional SIGILL/CFI trap in node::GetNodeReport when @parcel/watcher initializes the Git repository watcher. Existing ELF, filesystem, and ldd libc-detection fallbacks remain available.

A custom updater tracks both architecture-specific Debian downloads using their ETags, extracts the package versions from Debian control metadata, and refreshes their fixed-output hashes.

Testing

Automated checks:

  • nix build --accept-flake-config path:.#chatgpt
  • chatgpt --version reports Codex 151.0.7922.76
  • ./packages/chatgpt/update.py
  • Targeted nix fmt
  • nix flake check --accept-flake-config --no-build path:.
  • Native aarch64-linux package build on Nixbot.
  • Verified the ARM64 Debian metadata, ELF architecture, payload layout, and ASAR patch target.

Manual testing on x86_64 NixOS:

  • Chat works.
  • Coding workflows work.
  • The integrated browser works.
  • Voice mode works.
  • The pet and voice overlays intermittently flash under niri. It is currently unclear whether this is niri-specific or an upstream issue in the early Linux release.

Follow-up

  • Evaluate the appropriate packaging approach for Darwin/macOS.

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.

package request: ChatGPT Desktop / Codex Desktop for Linux

1 participant