This repository has no description
705 B
22 lines
1# llm-agents' orca with a working darwin launcher. Upstream links
2# bin/orca-ide straight to Orca.app/Contents/MacOS/Orca; Electron then looks
3# for its helper apps relative to the symlink and dies with "Unable to find
4# helper app". Executing the binary by its real path inside the bundle works.
5{
6 stdenvNoCC,
7 runtimeShell,
8 llm-agents,
9}:
10if stdenvNoCC.hostPlatform.isDarwin then
11 llm-agents.orca.overrideAttrs (old: {
12 postInstall = (old.postInstall or "") + ''
13 rm $out/bin/orca-ide
14 cat >$out/bin/orca-ide <<EOF
15 #!${runtimeShell}
16 exec "$out/Applications/Orca.app/Contents/MacOS/Orca" "\$@"
17 EOF
18 chmod +x $out/bin/orca-ide
19 '';
20 })
21else
22 llm-agents.orca