Skip to content

nix build .#desktop fails after Electron migration #26120

Description

@tommoa

Description

nix build .#desktop fails because the desktop Nix derivation still expects the old Tauri layout.

nix/desktop.nix references packages/desktop/src-tauri/Cargo.lock, but packages/desktop/src-tauri was removed when the desktop app was migrated/consolidated to Electron in #25822.

Current failure:

#  nix build .#desktop
error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'opencode-desktop-1.14.40+0b70270'
         whose name attribute is located at /nix/store/pf1p2xxw896dpg8dhmgg6pw9hy6wd191-source/pkgs/stdenv/generic/make-derivation.nix:541:11

       … while evaluating attribute 'cargoDeps' of derivation 'opencode-desktop-1.14.40+0b70270'
         at /nix/store/pf1p2xxw896dpg8dhmgg6pw9hy6wd191-source/pkgs/build-support/rust/build-rust-package/default.nix:107:7:
          106|
          107|       cargoDeps =
             |       ^
          108|         if cargoVendorDir != null then

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/nix/store/jvkh72jmya94kh4i5w9fh1zpxrcdwbf8-source/packages/desktop/src-tauri/Cargo.lock' does not exist

Expected behavior: nix build .#desktop should build the current Electron desktop app, or the desktop flake output should be disabled until Electron packaging is supported.

Plugins

None

OpenCode version

HEAD (0b70270)

Steps to reproduce

  1. Try to build the desktop app with nix build .#desktop
  2. Observe failure

Screenshot and/or share link

No response

Operating System

macOS 26.4.1

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions