You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nix flake: desktop package fails to build - missing outputHashes for specta git dependency #11755
Or use a crates.io release instead of git dependency (avoids manual hash maintenance).
Re-enable nix-desktop.yml workflow to catch future regressions.
OpenCode version
1.1.48
Steps to reproduce
nix build github:anomalyco/opencode#desktop
Operating System
Linux x86_64
Reacted by Randall Dillon Johnson, Maxim Fedan, Andrew Austin, Yiannis Panagidis, Jakub Chábek, Jaakko Sirén, Andrea Ciceri, Ben Gubler, Maddison Cohodas, Kenneth Hoff and 1 more
I realize this may be obvious, but disabling the desktop from the flake is a less-than-ideal solution, and if/when nixpkgs catches up we're going to be breaking a lot of people's flakes who don't expect things to be just disabled?
Proposal: Replace nix-desktop.yml with cross-platform evaluation
Instead of re-enabling the full build workflow (4 native runners, ~60 min), use a Nix evaluation workflow that catches the same errors from a single Linux runner in ~2-5 min.
The outputHashes error is an evaluation-time error - nix eval catches it without building anything.
Proposed nix-eval.yml
name: nix-evalon:
push:
branches: [dev]paths:
- "flake.nix"
- "flake.lock"
- "nix/**"
- "packages/app/**"
- "packages/desktop/**"
- ".github/workflows/nix-eval.yml"pull_request:
paths:
- "flake.nix"
- "flake.lock"
- "nix/**"
- "packages/app/**"
- "packages/desktop/**"
- ".github/workflows/nix-eval.yml"workflow_dispatch:
jobs:
nix-eval:
runs-on: blacksmith-4vcpu-ubuntu-2404timeout-minutes: 15steps:
- name: Checkout repositoryuses: actions/checkout@v6
- name: Setup Nixuses: nixbuild/nix-quick-install-action@v34
- name: Evaluate flake outputs (all systems)run: | set -euo pipefail nix --version echo "=== Flake metadata ===" nix flake metadata echo "" echo "=== Flake structure ===" nix flake show --all-systems SYSTEMS="x86_64-linux aarch64-linux x86_64-darwin aarch64-darwin" PACKAGES="opencode desktop" echo "" echo "=== Evaluating all packages for all systems ===" for system in $SYSTEMS; do echo "" echo "--- $system ---" for pkg in $PACKAGES; do printf " %s: " "$pkg" if nix eval ".#packages.$system.$pkg.drvPath" --raw > /dev/null 2>&1; then echo "✓" else echo "✗" echo "::error::Evaluation failed for packages.$system.$pkg" nix eval ".#packages.$system.$pkg.drvPath" --raw exit 1 fi done done echo "" echo "=== Evaluating devShells for all systems ===" for system in $SYSTEMS; do printf "%s: " "$system" if nix eval ".#devShells.$system.default.drvPath" --raw > /dev/null 2>&1; then echo "✓" else echo "✗" echo "::error::Evaluation failed for devShells.$system.default" nix eval ".#devShells.$system.default.drvPath" --raw exit 1 fi done echo "" echo "=== All evaluations passed ==="
I don't think the PR will actually solve the problem long-term. I think we either need four runners or perhaps just abandon maintaining a flake if it's too much maintenance overhead.
I don't think the PR will actually solve the problem long-term. I think we either need four runners or perhaps just abandon maintaining a flake if it's too much maintenance overhead.
The PR is not meant to solve the issue - hence the reference and not the close -. Its description is clear. And maintaining a flake does not add overhead if an ad hoc ci is enforced. A codeflow not enforcing review and ci is actually the main source of overhead: things done get undone then redone, etc. It's fun, but not efficient.
Reacted by Andrew Austin, Yiannis Panagidis, Kevin Miller and Fahim Ali Zain
Activity
fix(opencode): disable desktop due to missing specta outputHash
ndrwstn commentedon Feb 4, 2026
I realize this may be obvious, but disabling the desktop from the flake is a less-than-ideal solution, and if/when nixpkgs catches up we're going to be breaking a lot of people's flakes who don't expect things to be just disabled?
farefray commentedon Feb 4, 2026
jfyi: Was able to bypass with flake hashes:
jerome-benoit commentedon Feb 4, 2026
Proposal: Replace
nix-desktop.ymlwith cross-platform evaluationInstead of re-enabling the full build workflow (4 native runners, ~60 min), use a Nix evaluation workflow that catches the same errors from a single Linux runner in ~2-5 min.
The
outputHasheserror is an evaluation-time error -nix evalcatches it without building anything.Proposed
nix-eval.ymlComparison
nix-desktop.yml)nix-eval.yml)desktoponlyopencode,desktopoutputHasheserrorsThe
nix-desktop.yml.disabledcan be deleted.ndrwstn commentedon Feb 4, 2026
I don't think the PR will actually solve the problem long-term. I think we either need four runners or perhaps just abandon maintaining a flake if it's too much maintenance overhead.
jerome-benoit commentedon Feb 5, 2026
The PR is not meant to solve the issue - hence the reference and not the close -. Its description is clear. And maintaining a flake does not add overhead if an ad hoc ci is enforced. A codeflow not enforcing review and ci is actually the main source of overhead: things done get undone then redone, etc. It's fun, but not efficient.
fix: add output hashes for opencode desktop git dependencies
fix: make desktop package evaluation non-blocking until anomalyco#11755…
Add OpenCode Desktop via Homebrew cask
chore(development): bump copilot models and adjust opencode packages
chore(development): bump copilot models and adjust opencode packages
github-actions commentedon Apr 6, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.