added sibli support for buz
This commit is contained in:
1 parent
bfdcd45746
commit
3a2cb09d07
13 files changed
+236
No files matched your search
@@ -10,6 +10,7 @@ Packages here are exposed via an overlay defined in `modules/core/default.nix`.
|
||||
| `colibri/` | colibrì (`JustVugg/colibri`) — GLM-5.2/OLMoE local inference engine, built from source, pinned to a tagged release. Backend-parameterized (`backend = "cpu" \| "rocm"`). Exposed as `pkgs.colibri` (cpu, default), `pkgs.colibri-rocm` (Strix Halo / gfx1151). Installs the `coli` CLI (wrapped with the Python env its converter/bench subcommands need) plus the bundled `colibri`/`olmoe` engine binaries. Model weights are a runtime concern and not packaged. |
|
||||
| `niri-touchscreen-gestures/` | Python daemon that reads multi-touch events from a touchscreen via `evdev`, detects 2/3/4-finger swipes (up/down/left/right), and dispatches configurable `niri msg action` commands. Configured via TOML; exposed as `pkgs.niri-touchscreen-gestures`. |
|
||||
| `buzz-desktop/` | Block Buzz desktop (Type-2 AppImage from `block/buzz`). Wrapped with `appimageTools.wrapType2` plus extra FHS libs (`elfutils`, `zstd`, WebKit/tray, GStreamer good/bad) so it runs on NixOS. Exposed as `pkgs.buzz-desktop` (`buzz-desktop` binary + desktop entry / icons). |
|
||||
| `buzz-cli/` | Buzz CLI (`buzz`, `crates/buzz-cli` of `block/buzz`), built with `rustPlatform.buildRustPackage` from the same tag as `buzz-desktop`. Hermes's Buzz platform shells out to it. Bump with `update.sh` (sets the source hash, resets `cargoHash` to `lib.fakeHash`; build once and paste the `got:` hash). Robots call it with `pkgs.callPackage` (their nixpkgs has no host overlay). |
|
||||
| `delta-editor/` | Delta Editor (Zed Industries' AI-native editor, `delta.dev`) prebuilt tarball. No stable URL exists — the release API returns a short-lived signed R2 link — so `src` is a fixed-output derivation that resolves the API at build time. Interpreter/RPATH patched (`--force-rpath`, `dontPatchELF`), dlopen'd graphics libs (`libglvnd`, `vulkan-loader`, `wayland`) added via wrapper, `XKB_CONFIG_ROOT` set for the bundled libxkbcommon. Exposed as `pkgs.delta-editor` (`delta-editor` binary + desktop entry / icons); named `-editor` to avoid clashing with the `delta` git diff pager. |
|
||||
|
||||
## Adding a New Package
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
# Buzz CLI (`buzz`, crates/buzz-cli in block/buzz). Hermes's Buzz platform
|
||||
# runs it, so a robot with a Buzz identity needs it. Upstream ships no binary.
|
||||
# Pinned to the same tag as pkgs/buzz-desktop. The relay image tracks `main`,
|
||||
# so bump both together if the CLI and relay stop agreeing.
|
||||
#
|
||||
# To bump: run ./update.sh [<version>] (sets the source hash, resets
|
||||
# cargoHash), then build once and paste the cargoHash from the "got:" line.
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "buzz-cli";
|
||||
version = "0.5.28";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "block";
|
||||
repo = "buzz";
|
||||
rev = "desktop-v${version}";
|
||||
hash = "sha256-NEsLQwcoQ2zTgznFgGFGNgYPnoclicNVycSEjl7I0Wo=";
|
||||
};
|
||||
|
||||
# The workspace has git deps in [patch.crates-io]; cargoHash covers them.
|
||||
cargoHash = lib.fakeHash;
|
||||
|
||||
# Only this crate; the workspace has 30+ others (relay, db, ...).
|
||||
cargoBuildFlags = [ "-p" "buzz-cli" ];
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Buzz CLI, the agent-facing command line for a Buzz relay";
|
||||
homepage = "https://github.com/block/buzz";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "buzz";
|
||||
};
|
||||
}
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
# Bump buzz-cli to a new version.
|
||||
# Usage: ./update.sh [<version>]
|
||||
# With version: bump to that version.
|
||||
# Without args: auto-detect latest from GitHub releases.
|
||||
# Uses the same desktop-v* tag as buzz-desktop. cargoHash needs a build,
|
||||
# so it is reset to lib.fakeHash; build once and paste the "got:" hash.
|
||||
set -euo pipefail
|
||||
|
||||
PKG="buzz-cli"
|
||||
REPO="block/buzz"
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
VERSION="$1"
|
||||
else
|
||||
echo "Auto-detecting latest buzz-cli version..."
|
||||
VERSION=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases" \
|
||||
| jq -r '[.[] | select(.tag_name | startswith("desktop-v")) | .tag_name | sub("^desktop-v"; "")] | .[0]')
|
||||
if [ -z "$VERSION" ] || [ "$VERSION" = "null" ]; then
|
||||
echo "Could not auto-detect latest version from GitHub."
|
||||
echo "Usage: $0 [<version>]"
|
||||
exit 1
|
||||
fi
|
||||
echo "Latest: $VERSION"
|
||||
fi
|
||||
|
||||
HASH=$(nix flake prefetch "github:${REPO}/desktop-v${VERSION}" --json | jq -r '.hash')
|
||||
if [ -z "$HASH" ] || [ "$HASH" = "null" ]; then
|
||||
echo "Could not prefetch tag desktop-v${VERSION}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sed -i "s/version = \".*\";/version = \"${VERSION}\";/" default.nix
|
||||
sed -i "s|hash = .*;|hash = \"${HASH}\";|" default.nix
|
||||
sed -i "s|cargoHash = .*;|cargoHash = lib.fakeHash;|" default.nix
|
||||
|
||||
echo "✅ ${PKG} bumped to ${VERSION}"
|
||||
echo " Next: build once, then paste the cargoHash from the \"got:\" line."
|
||||
Reference in new issue
Block a user