Skip to content

Commit 8d52070

Browse files
committed
swap to custom opencode package
1 parent f2c6783 commit 8d52070

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

pkgs/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
go-jwlm = pkgs.callPackage ./go-jwlm {};
77
iamlive = pkgs.callPackage ./iamlive {};
88
kiro-cli = pkgs.callPackage ./kiro-cli {};
9+
opencode = pkgs.callPackage ./opencode {};
910
swamp = pkgs.callPackage ./swamp {};
1011
}

pkgs/opencode/default.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ABOUTME: OpenCode - AI coding agent for the terminal
2+
# ABOUTME: Wraps bunx invocation to avoid glibc 2.42 segfault with bun --compile binaries
3+
{
4+
lib,
5+
stdenv,
6+
writeShellApplication,
7+
bun,
8+
...
9+
}:
10+
writeShellApplication {
11+
name = "opencode";
12+
runtimeInputs = [bun];
13+
text = ''
14+
exec bunx opencode-ai "$@"
15+
'';
16+
17+
meta = with lib; {
18+
description = "AI coding agent built for the terminal";
19+
homepage = "https://opencode.ai";
20+
license = licenses.mit;
21+
platforms = platforms.unix;
22+
mainProgram = "opencode";
23+
};
24+
}

0 commit comments

Comments
 (0)