This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

pkgs.orca: fix darwin launcher, use it for llm.orca

+37 -3
+4 -1
flake.nix
··· 373 373 }) 374 374 ]; 375 375 }; 376 - legacyPackages.llm = inputs.llm-agents.packages.${system}; 376 + # orca: see pkgs/orca (darwin launcher fix). 377 + legacyPackages.llm = 378 + inputs.llm-agents.packages.${system} 379 + // lib.optionalAttrs (self.packages.${system} ? orca) { inherit (self.packages.${system}) orca; }; 377 380 checks = 378 381 let 379 382 # Check NixOS configurations can be evaluated (without building)
+11 -2
pkgs/flake-module.nix
··· 1 1 { ... }: 2 2 { 3 3 perSystem = 4 - { lib, pkgs, ... }: 4 + { 5 + lib, 6 + pkgs, 7 + inputs', 8 + ... 9 + }: 5 10 { 6 11 packages = 7 12 let 13 + # pkgs.callPackage plus llm-agents, for packages that patch one of 14 + # its agents (pkgs.orca is the GNOME screen reader, not this one). 15 + callPackage = pkgs.newScope { llm-agents = inputs'.llm-agents.packages; }; 16 + 8 17 # Wrapper that handles platform-incompatible packages by: 9 18 # 1. Catching eval errors during callPackage 10 19 # 2. Filtering based on meta.platforms 11 20 platformAwareCallPackage = 12 21 path: args: 13 22 let 14 - result = builtins.tryEval (pkgs.callPackage path args); 23 + result = builtins.tryEval (callPackage path args); 15 24 pkg = result.value; 16 25 isSupported = result.success && lib.meta.availableOn pkgs.stdenv.hostPlatform pkg; 17 26 in
+22
pkgs/orca/package.nix
··· 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 + }: 10 + if 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 + }) 21 + else 22 + llm-agents.orca