Wrap T3 Code apps with optional agent CLI paths
- Split base desktop/server derivations from wrapper layers - Add optional PATH injection for codex, claudeCode, and opencode - Update flake inputs and lock entries for nixpkgs/llm-agents
This commit is contained in:
+20
-16
@@ -60,25 +60,25 @@ in {
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
runHook preBuild
|
||||
|
||||
export HOME="$TMPDIR"
|
||||
export BUN_INSTALL_CACHE_DIR="$(mktemp -d)"
|
||||
${extraEnv}
|
||||
export HOME="$TMPDIR"
|
||||
export BUN_INSTALL_CACHE_DIR="$(mktemp -d)"
|
||||
${extraEnv}
|
||||
|
||||
bun install \
|
||||
--frozen-lockfile \
|
||||
--ignore-scripts \
|
||||
--backend=copyfile \
|
||||
--linker=hoisted \
|
||||
--no-progress \
|
||||
${renderBunInstallFlags installFlags}
|
||||
${renderBunFilters filters}
|
||||
bun install \
|
||||
--frozen-lockfile \
|
||||
--ignore-scripts \
|
||||
--backend=copyfile \
|
||||
--linker=hoisted \
|
||||
--no-progress \
|
||||
${renderBunInstallFlags installFlags}
|
||||
${renderBunFilters filters}
|
||||
|
||||
bun --bun ${./scripts/canonicalize-node-modules.ts}
|
||||
bun --bun ${./scripts/normalize-bun-binaries.ts}
|
||||
bun --bun ${./scripts/canonicalize-node-modules.ts}
|
||||
bun --bun ${./scripts/normalize-bun-binaries.ts}
|
||||
|
||||
runHook postBuild
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
@@ -109,7 +109,11 @@ ${renderBunFilters filters}
|
||||
mkdir -p ./node_modules
|
||||
cp -R ${nodeModules}/. ./node_modules/
|
||||
chmod -R u+rwX node_modules
|
||||
if [ ${if chmodBins then "true" else "false"} = true ] && [ -d node_modules/.bin ]; then
|
||||
if [ ${
|
||||
if chmodBins
|
||||
then "true"
|
||||
else "false"
|
||||
} = true ] && [ -d node_modules/.bin ]; then
|
||||
chmod -R u+x node_modules/.bin
|
||||
fi
|
||||
patchShebangs node_modules
|
||||
|
||||
Reference in New Issue
Block a user