Skip to content

Commit 15626de

Browse files
committed
opencode: pin nixpkgs-unstable to 1.18.29 (avoid bun 1.4.2 crash)
nixpkgs-unstable at the time of pinning had bumped bun 1.3.13 -> 1.4.2 (2026-09-12) and opencode 1.18.29 -> 1.18.30 (2026-09-10). The opencode nixpkgs derivation compiles the CLI from source with nixpkgs bun, and the compiled-bun build path crashes in SystemPrompt.environment (anomalyco/opencode#48372) on bun 1.4.2 — the prebuilt release binary is fine, only the source-compiled path breaks. Pinning to the 2026-09-10 rev b1822af drops both opencode to 1.18.29 and bun to 1.3.13, the combination the prebuilt binary shipped with. Unpin (nix flake update nixpkgs-unstable) once upstream fix #48397 lands in nixpkgs.
1 parent e113aae commit 15626de

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

‎flake.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,24 @@
66
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
77

88
# Rolling nixpkgs. Used ONLY for groups listed in perry.unstableGroups
9-
# (see common/common.nix) — never for the OS itself. Refresh with:
10-
# nix flake update nixpkgs-unstable
11-
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
9+
# (see common/common.nix) — never for the OS itself.
10+
#
11+
# Pinned to a 2026-09-10 rev (opencode 1.18.29, bun 1.3.13, herdr 0.9.0).
12+
# ROLLING nixpkgs-unstable at the time of pinning had bumped bun to 1.4.2
13+
# (2026-09-12) and opencode to 1.18.30 (2026-09-10). opencode's nixpkgs
14+
# derivation compiles the CLI from source with nixpkgs' `bun`, and that
15+
# compiled-bun build path crashes in SystemPrompt.environment
16+
# (github.com/anomalyco/opencode/issues/48372) on bun 1.4.2 — the official
17+
# prebuilt release binary is fine, only the source-compiled path breaks.
18+
# Downgrading to this rev drops both opencode to 1.18.29 AND bun to 1.3.13,
19+
# which is the build combination the prebuilt binary shipped with.
20+
# Re-pin to rolling (url = "github:NixOS/nixpkgs/nixpkgs-unstable") once
21+
# upstream fix #48397 lands in nixpkgs.
22+
nixpkgs-unstable = {
23+
url = "github:NixOS/nixpkgs/b1822af09f8d709b9259f63d420d184037ce1d3a";
24+
# No `ref`: `nix flake update nixpkgs-unstable` re-resolves the default
25+
# branch (rolling) in one step when you want to unpin.
26+
};
1227

1328
home-manager = {
1429
url = "github:nix-community/home-manager/release-26.05";

0 commit comments

Comments
 (0)