Repository navigation
berd: init at 0.6.5 - #580616
berd: init at 0.6.5#580616kleinbem wants to merge 2 commits into
Conversation
Moves `berd` from `pkgs/berd` into `nixpkgs-prs.json`, pinned to the head of the draft NixOS/nixpkgs#580616 (835b6b84). That commit is green on nixpkgs-review-gha for x86_64 and aarch64 Linux (package tests included), and the x86_64 derivation here is the same one the PR's checks built, so it's already in the review cache. Later pins go through the pin-nixpkgs-pr workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit - **Package Updates** - `berd` is now listed with open nixpkgs pull requests, associated with PR 580616, instead of the Block package group. - `berd` is no longer included in this repository’s local package set. Its package details are tracked through the open nixpkgs PR entry, so it is not available from the repository’s derivation set. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
Runs a nixpkgs branch's berd for real: the packaged app with its bundled goosed, a chat through berdctl, a pinned Qwen2.5 0.5B on llama-server answering. On dispatch for x86_64-linux, aarch64-linux and aarch64-darwin (macos-26), for the berd PR (NixOS/nixpkgs#580616) before it goes ready, so macOS is proven without Mac hardware. Locally green against the PR head (reply PONG). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added an on-demand Behaviour test for Berd using a local language model, with support for Linux and optional macOS runs. * Test logs are uploaded when available, including when a test fails. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
Pins berd to 064f3f90, the signed head of NixOS/nixpkgs#580616 (nixpkgs-review green on all three platforms). Berd now takes `block-catch` (NixOS/nixpkgs#580909), which the fleet's nixpkgs doesn't have, so the *Pin nixpkgs PR* run failed on eval. A registry entry's new `scope` calls such packages into the entry's scope without exporting them. Evaluated berd on x86_64-linux and aarch64-darwin: same derivations as in the nixpkgs trial. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Package entries can now use additional dependencies from the same pull request, including dependencies that are not exposed in the final package set. * The `berd` package entry now includes an additional dependency and points to an updated nixpkgs revision. * **Documentation** * Clarified how packages can depend on other packages from the same or a separate pull request. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
Installs Berd on nixos-nvme from NixOS/nixpkgs#580616 (nix-packages' nixpkgs-prs pin, signed head 064f3f90), next to buzz-app, for a few days of real use before the nixpkgs PR goes ready. Evaluates to the derivation nixpkgs-review built for the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added the Berd desktop app to the available system packages. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
Pins `berd` to 04d9f060c6e1a698b0b78f9153ddeeab54ca479c, the state of NixOS/nixpkgs#580616 this fleet runs. nix-config's build-all builds it with the fleet's nixpkgs before it reaches a host. 🤖 Opened by the pin-nixpkgs-pr workflow. Co-authored-by: kleinbem-bot[bot] <293345884+kleinbem-bot[bot]@users.noreply.github.com>
Pins `berd` to aba4b6f5dbb63574efa64004971127c15faafc4c, the state of NixOS/nixpkgs#580616 this fleet runs. nix-config's build-all builds it with the fleet's nixpkgs before it reaches a host. 🤖 Opened by the pin-nixpkgs-pr workflow. Co-authored-by: kleinbem-bot[bot] <293345884+kleinbem-bot[bot]@users.noreply.github.com>
…m libraries (#21) nixpkgs' cargo setup hook now makes `*-sys` crates link system libraries (`AWS_LC_SYS_USE_SYSTEM`, `LIBSQLITE3_SYS_USE_PKG_CONFIG`, `ZSTD_SYS_USE_PKG_CONFIG`, …; tracking: NixOS/nixpkgs#570938). Five packages in nixos-nvme's closure lack those build inputs and fail, so `just dev::apply` can't build the system. | Package | Fixed where | Override | |---|---|---| | goose-cli | nixpkgs master NixOS/nixpkgs@2f16d1a4f7 | `overrides/goose-cli.nix`: aws-lc, oniguruma, sqlite, zstd (the upstream fix) | | newsflash | nixpkgs master NixOS/nixpkgs@a8a0d9e4d2 | `overrides/rust-system-libs.nix` | | berd, mesh-llm, buzz-app | heads of NixOS/nixpkgs#580616, #571722, #577918 (nix-packages pins older commits) | `overrides/rust-system-libs.nix` | nixos-unstable has been stuck at 2026-11-07, so the master fixes aren't in it; the release workflow drops these once it builds them. `rust-system-libs.nix` adds aws-lc, openssl, sqlite and zstd plus pkg-config (the libraries these crates use; extra ones are harmless). Tested: - nixos-nvme built with these holds, `--keep-going`, on x86_64: goose-cli, newsflash, berd and revue (with kleinbem-dev/revue#50) built; mesh-llm and buzz-app are past the failing build scripts and still linking at the time of writing. - nix-detour's reach check (kleinbem-dev/nix-detour#66): every hold reaches nixos-nvme, no unheld copies left. - `checks.held-packages` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Added version holds for `berd`, `buzz-app`, `buzz-cli`, `goose-cli`, `mesh-llm` and `newsflash`. * Updated build requirements for `goose-cli` and other Rust-based packages to include system libraries and package-configuration tooling. * Reordered the existing `buzz-cli` hold in the package holds list; its details remain unchanged. These updates affect package maintenance and build configuration, with no changes to user-facing features or behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Moves `berd` in `nixpkgs-prs.json` from `kleinbem/nixpkgs@aba4b6f5` (`0.6.4`) to `kleinbem/nixpkgs@33890833` (the current head of NixOS/nixpkgs#580616 at `0.6.5`), which adds `aws-lc` to `buildInputs` so `aws-lc-sys` links the system AWS-LC under `AWS_LC_SYS_USE_SYSTEM=1`. ### Checked - NixOS/nixpkgs#580616 passed `PR/Build` on `x86_64-linux`, `aarch64-linux`, and `aarch64-darwin`. - Built `.#berd` (including all 7 Cargo test lanes) and `.#berd.tests.sidecars` locally against this flake's `nixpkgs` on `x86_64-linux`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Updated the bundled `berd` version reference. No user-facing changes are noted. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
The aarch64-darwin failure isn't from this package. SwiftUI's |
|
Unfortunately, Berd won’t be as easy to fix as block-catch. It’s using Rust. We have an example in-tree with Handy (here and here), but Berd is using swift-rs, so it can’t use the same patch. 😕 This patch works for me. It’s hacky, but the right fix would be to add support for macro plugins to swift-rs, which is way beyond the scope of a package PR. The patch also depends on the changes to Catch I mentioned in #580909. diff --git a/pkgs/by-name/be/berd/add-plugin-path-for-swift-macros.patch b/pkgs/by-name/be/berd/add-plugin-path-for-swift-macros.patch
new file mode 100644
index 0000000000..64d0ce417f
--- /dev/null
+++ b/pkgs/by-name/be/berd/add-plugin-path-for-swift-macros.patch
@@ -0,0 +1,13 @@
+diff -ur a/berd-@berd-version@-vendor/source-registry-0/swift-rs-@swift-rs-version@/src-rs/build.rs b/berd-@berd-version@-vendor/source-registry-0/swift-rs-@swift-rs-version@/src-rs/build.rs
+--- a/berd-@berd-version@-vendor/source-registry-0/swift-rs-@swift-rs-version@/src-rs/build.rs 2026-11-19 09:21:14.735208832 -0500
++++ b/berd-@berd-version@-vendor/source-registry-0/swift-rs-@swift-rs-version@/src-rs/build.rs 2026-11-19 09:20:58.252592671 -0500
+@@ -270,6 +270,9 @@
+ // Necessary for iOS compilation.
+ .args(["-Xswiftc", "-sdk"])
+ .args(["-Xswiftc", sdk_path.trim()])
++ .args(["-Xswiftc", "-external-plugin-path"])
++ .args(["-Xswiftc", "@open-apple-macros@/lib/swift/host/plugins#@open-apple-macros@/libexec/swift/plugins/OpenAppleMacrosServer"])
++ .args(["--disable-sandbox"]) // Because Nixpkgs builds already happen in a sandbox.
+ // Override target triple for each swiftc instance.
+ // Necessary for iOS compilation.
+ .args(["-Xswiftc", "-target"])
diff --git a/pkgs/by-name/be/berd/package.nix b/pkgs/by-name/be/berd/package.nix
index 973feb9fc8..1852de7830 100644
--- a/pkgs/by-name/be/berd/package.nix
+++ b/pkgs/by-name/be/berd/package.nix
@@ -29,9 +29,11 @@
block-catch,
cacert,
coreutils,
+ open-apple-macros,
swift,
swiftpm,
xcbuild,
+ replaceVars,
writableTmpDirAsHomeHook,
nix-update-script,
}:
@@ -104,6 +106,20 @@
hash = "sha256-dGpMXPE9qV4rrpdO2VsHeMSoaUKUQCAKeoIhliTC81s=";
};
+ patchFlags = [
+ "-p1"
+ "-d"
+ ".."
+ ];
+
+ patches = lib.optionals stdenv.hostPlatform.isDarwin [
+ (replaceVars ./add-plugin-path-for-swift-macros.patch {
+ inherit open-apple-macros;
+ berd-version = finalAttrs.version;
+ swift-rs-version = "1.0.7";
+ })
+ ];
+
cargoRoot = "src-tauri";
buildAndTestSubdir = "src-tauri";
cargoHash = "sha256-aSy2R3Gr1ZIImrHjaqlvIs4Pm+cV1A8RzxPJqxnG8Ks="; |
|
Applied your |
Assisted-by: Claude Code (claude-opus-5-5) Assisted-by: Antigravity (Gemini 4 Hydrogen)
Assisted-by: Claude Code (claude-opus-5-5) Assisted-by: Antigravity (Gemini 4 Hydrogen)
|
Thanks, it works :-) |
…ills (#207) First contact for Brendonovich/swift-rs, before an issue there: Berd's nixpkgs package (NixOS/nixpkgs#580616) patches swift-rs's build.rs to pass Swift macro plugin paths, and swift-rs has no way to take extra `swift build` arguments. Adds the owner skill, the repository skill, the router and switches rows, README rows and the marketplace entry. `claude plugin validate .` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
Depends on #580909 (
block-catch); only the last commit is new.Adds
berd, Berd: Block's open-source desktop app for working with AI agents, built on Goose. It's built from source for Linux and macOS.It's built like upstream's release (
release.yml: theberdctlfeature, every Block-service gate off, no updater, telemetry off until the user opts in), with these differences:goosedsidecar is nixpkgs'goose-cliinstead of goose built from the commit ingoose-backend.lock.json. Berd only needsgoose serve; 0.6.5 works with goose 1.55. I asked upstream which goose releases a Berd release supports (State which goose release a Berd release works with block/berd#456).Cargo.tomlfiles selects itssharedfeature instead of prebuilt static libraries downloaded by the build script (Support building with shared sherpa-onnx without patching Cargo.toml block/berd#449).no-managed-acp-toolsandno-bb-cli-installfeatures are on, so the app doesn't download Node.js and npm packages at runtime or try to symlinkberdctlinto/usr/local/bin. Agents likeclaude-agent-acpcome from nixpkgs..desktopfile runs the wrapper (berd) and getsCategories=Development;Utility;; upstream's is empty (Linux .desktop file has an empty Categories= line block/berd#450).block-catchinstead of the prebuilt binary upstream's script downloads. The prompt that offers to move the app to/Applicationsis skipped, as upstream already does for debug builds: the app lives in the Nix store, and nix-darwin or Home Manager link it (Build switch to skip the move-to-Applications prompt for package-manager installs block/berd#457).berdctl, the CLI that controls a running Berd, is inbin/next toberd.passthru.tests.sidecarschecks the layout on both platforms, every sidecar and that no updater catalog is bundled.The check phase runs the Rust test lanes of upstream's
just tauri-test, now including the wholeberd-callvoice crate; its tests get coreutils instead of/bin/catand friends, and 10 that need things the sandbox doesn't have (/syson aarch64-linux; Siri, CoreAudio and ACLs set with/bin/chmodon macOS) are skipped by name. On macOS the app also bundles Berd Call (berd-call), as upstream's release does since 0.6.5. Besides the builds I ran the app on all three platforms: it starts, connects to goose, and a chat with a local model (llama-server) gets a reply. Voice works too: upstream's Parakeet model tests and speech-to-text benchmark and a Pocket text-to-speech round trip pass on x86_64-linux, aarch64-linux and aarch64-darwin.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.Prepared with Claude Code (claude-opus-5-5); the commit carries an
Assisted-by:trailer.