Skip to content

berd: init at 0.6.5 - #580616

Open
kleinbem wants to merge 2 commits into
NixOS:masterfrom
kleinbem:berd
Open

kleinbem wants to merge 2 commits into
NixOS:masterfrom
kleinbem:berd

Conversation

@kleinbem

@kleinbem kleinbem commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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: the berdctl feature, every Block-service gate off, no updater, telemetry off until the user opts in), with these differences:

berdctl, the CLI that controls a running Berd, is in bin/ next to berd. passthru.tests.sidecars checks 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 whole berd-call voice crate; its tests get coreutils instead of /bin/cat and friends, and 10 that need things the sandbox doesn't have (/sys on aarch64-linux; Siri, CoreAudio and ACLs set with /bin/chmod on 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

Prepared with Claude Code (claude-opus-5-5); the commit carries an Assisted-by: trailer.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs labels Oct 29, 2026
kleinbem added a commit to kleinbem/nix-packages that referenced this pull request Oct 29, 2026
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]>
kleinbem added a commit to kleinbem/nix-packages that referenced this pull request Oct 29, 2026
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]>
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Oct 30, 2026
kleinbem added a commit to kleinbem/nix-packages that referenced this pull request Oct 30, 2026
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]>
kleinbem added a commit to kleinbem/nix-config that referenced this pull request Oct 30, 2026
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]>
kleinbem-bot Bot added a commit to kleinbem/nix-packages that referenced this pull request Oct 30, 2026
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>
@kleinbem
kleinbem marked this pull request as ready for review October 31, 2026 05:38
kleinbem-bot Bot added a commit to kleinbem/nix-packages that referenced this pull request Oct 31, 2026
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>
@nixpkgs-ci nixpkgs-ci Bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 31, 2026
@kleinbem kleinbem changed the title berd: init at 0.6.4 berd: init at 0.6.5 Nov 9, 2026
kleinbem added a commit to kleinbem/nix-detour-fleet that referenced this pull request Nov 11, 2026
…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]>
kleinbem added a commit to kleinbem/nix-packages that referenced this pull request Nov 14, 2026
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 -->
@kleinbem

Copy link
Copy Markdown
Member Author

The aarch64-darwin failure isn't from this package. SwiftUI's @State stopped compiling with Swift 6.4, tracked in #590363.

@reckenrode

Copy link
Copy Markdown
Contributor

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=";

@kleinbem

Copy link
Copy Markdown
Member Author

Applied your add-plugin-path-for-swift-macros.patch and open-apple-macros changes, and rebased onto the updated block-catch commit from #580909. I couldn't test the Darwin build locally on Linux, so this is eval-checked only.

@kleinbem
kleinbem requested a review from reckenrode November 23, 2026 23:58
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 24, 2026
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)
@kleinbem

Copy link
Copy Markdown
Member Author

Thanks, it works :-)

kleinbem added a commit to kleinbem/skills that referenced this pull request Nov 25, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants