Skip to content

nix build .#desktop fails after Electron migration #26120

Closed as not planned
Closed as not planned

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

Activity

  1. added a commit that references this issue on May 9, 2026
    6326117
  2. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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