Files
nixos-4screen/pkgs/agentpipe-bin.nix

48 lines
1.0 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"
bin=""
if [ -f "./agentpipe" ]; then
bin="./agentpipe"
else
bin="$(find . -maxdepth 3 -type f -name agentpipe -print -quit)"
fi
if [ -z "$bin" ]; then
echo "agentpipe binary not found after unpack. Contents:" >&2
find . -maxdepth 3 -type f -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";
};
})