Fix agentpipe-bin install (binary name in release tarball)
This commit is contained in:
@@ -20,23 +20,31 @@ unpackPhase = ''
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
|
||||
bin=""
|
||||
if [ -f "./agentpipe" ]; then
|
||||
bin="./agentpipe"
|
||||
else
|
||||
bin="$(find . -maxdepth 3 -type f -name agentpipe -print -quit)"
|
||||
if [ -f ./agentpipe ]; then
|
||||
install -m0755 ./agentpipe "$out/bin/agentpipe"
|
||||
exit 0
|
||||
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
|
||||
echo "agentpipe binary not found after unpack. Contents:" >&2
|
||||
find . -maxdepth 3 -type f -print >&2
|
||||
find . -maxdepth 5 -print >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
install -m0755 "$bin" "$out/bin/agentpipe"
|
||||
'';
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "AgentPipe multi-agent orchestrator CLI/TUI";
|
||||
homepage = "https://github.com/kevinelliott/agentpipe";
|
||||
|
||||
Reference in New Issue
Block a user