Fix agentpipe-bin install (binary name in release tarball)

This commit is contained in:
2026-02-13 12:58:16 +11:00
parent c459e69000
commit 08bbe87cc5

View File

@@ -20,23 +20,31 @@ unpackPhase = ''
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
bin="" if [ -f ./agentpipe ]; then
if [ -f "./agentpipe" ]; then install -m0755 ./agentpipe "$out/bin/agentpipe"
bin="./agentpipe" exit 0
else
bin="$(find . -maxdepth 3 -type f -name agentpipe -print -quit)"
fi fi
if [ -f ./agentpipe_linux_amd64 ]; then
install -m0755 ./agentpipe_linux_amd64 "$out/bin/agentpipe"
exit 0
fi
# Fallback: try to locate it if the archive layout changes.
bin="$(find . -maxdepth 5 -type f \
\( -name agentpipe -o -name 'agentpipe_linux_amd64' -o -name 'agentpipe_*' \) \
! -name env-vars \
-print -quit)"
if [ -z "$bin" ]; then if [ -z "$bin" ]; then
echo "agentpipe binary not found after unpack. Contents:" >&2 echo "agentpipe binary not found after unpack. Contents:" >&2
find . -maxdepth 3 -type f -print >&2 find . -maxdepth 5 -print >&2
exit 1 exit 1
fi fi
install -m0755 "$bin" "$out/bin/agentpipe" install -m0755 "$bin" "$out/bin/agentpipe"
''; '';
meta = with lib; { meta = with lib; {
description = "AgentPipe multi-agent orchestrator CLI/TUI"; description = "AgentPipe multi-agent orchestrator CLI/TUI";
homepage = "https://github.com/kevinelliott/agentpipe"; homepage = "https://github.com/kevinelliott/agentpipe";