56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "agentpipe";
|
|
version = "0.7.0";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/kevinelliott/agentpipe/releases/download/v${finalAttrs.version}/agentpipe_linux_amd64.tar.gz";
|
|
sha256 ="sha256-3ofsrInUlcY1UN6LszOZGYJY0SgNB8FTwlyOXx/cznk=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
unpackPhase = ''
|
|
tar -xzf "$src"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/bin"
|
|
|
|
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 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";
|
|
license = licenses.mit;
|
|
platforms = [ "x86_64-linux" ];
|
|
mainProgram = "agentpipe";
|
|
};
|
|
})
|