feat(pkgs): add Claude Desktop (official Linux beta, repackaged .deb)#19
Merged
Conversation
Anthropic shipped an official Claude Desktop Linux beta (2026) as a .deb + apt repo only — no nixpkgs package. Repackage the OFFICIAL .deb (not the community Windows-build wrap) in pkgs/claude-desktop/: - dpkg-deb --fsys-tarfile | tar (drops chrome-sandbox's setuid, which the Nix sandbox forbids and the store can't hold anyway) - autoPatchelfHook fixes the bundled Electron/Chromium interpreter + rpaths (incl. libseccomp/libcap_ng for the bundled virtiofsd Cowork helper) - makeWrapper: gappsWrapperArgs (GTK), node/uv on PATH so MCP npx/uvx resolve, --disable-setuid-sandbox (keeps the userns sandbox; NixOS enables unprivileged userns by default), and Ozone Wayland flags. Wired via pkgs.callPackage in modules/packages/ai.nix; unfree already allowed. Pinned to 1.17377.2; bump version + src.hash per release (apt Packages index) — the Linux app doesn't self-update, so a pinned Nix install is safe. Verified: package builds; ELF interpreter patched; wrapper carries the flags; headless launch clears the SUID-sandbox stage; toplevel builds with claude-desktop in the closure. PRD §11.9 + TODO updated. Caveats: Niri has no tray (SNI icon needs a tray host); Code tab needs a paid plan. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Adds Claude Desktop — Anthropic's official Linux beta (2026), which ships only as a
.deb+ apt repo (no nixpkgs package). This repackages the official.deb(not the community Windows-build wrap) inpkgs/claude-desktop/, wired viapkgs.callPackageinmodules/packages/ai.nix.Derivation (
pkgs/claude-desktop/package.nix)dpkg-deb --fsys-tarfile | tar --no-same-permissions— the.deb'schrome-sandboxis setuid, which the Nix build sandbox forbids (and the store can't hold); dropped deliberately.autoPatchelfHookfixes the bundled Electron/Chromium interpreter + rpaths, includinglibseccomp/libcap_ngfor the bundledvirtiofsd(Cowork VM helper).gappsWrapperArgs;node/uvon PATH so MCPnpx/uvxlaunchers resolve;--disable-setuid-sandbox(keeps Chromium's user-namespace sandbox — not--no-sandbox; NixOS enables unprivileged userns by default); Ozone Wayland hints.version+src.hashper release from the aptPackagesindex. The Linux app doesn't self-update, so a pinned Nix install is safe.Verification
ld; wrapper carries the sandbox/Ozone flags.claude-desktop-1.17377.2in the system closure.Caveats
Docs: PRD §11.9, TODO ai.nix.
🤖 Generated with Claude Code