Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit bf5e125

Browse files
javdlclaude
andcommitted
Switch to beads_rust (br), remove Go-based beads
Replace Go-based beads (bd) with Rust rewrite (br v0.1.19) from beads_rust. Prebuilt binaries for x86_64-linux, x86_64-darwin, aarch64-darwin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5f9fa45 commit bf5e125

File tree

1 file changed

+37
-8
lines changed

1 file changed

+37
-8
lines changed

flake.nix

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
outputs = { self, nixpkgs, systems, prompts, ... }:
1414
let
1515
forEachSystem = nixpkgs.lib.genAttrs (import systems);
16+
17+
beadsRustVersion = "0.1.19";
18+
beadsRustHashes = {
19+
"x86_64-linux" = "sha256-61a0IeR+NI56GDJdIQlxeiQ3wqNneAe1gUPzAz5oTMw=";
20+
"x86_64-darwin" = "sha256-98srAx9fRr7NDbzVjIs4za7KONicVgPkZEimSaZ85/w=";
21+
"aarch64-darwin" = "sha256-p8cZ6+c4LUSMU1Cvz+lus6NfYYTWFilCD2Jt2G+PGSg=";
22+
};
23+
beadsRustTargets = {
24+
"x86_64-linux" = "linux_amd64";
25+
"x86_64-darwin" = "darwin_amd64";
26+
"aarch64-darwin" = "darwin_arm64";
27+
};
1628
in
1729
{
1830
devShells = forEachSystem
@@ -21,19 +33,40 @@
2133
pkgs = import nixpkgs {
2234
inherit system;
2335
};
36+
37+
beads-rust = pkgs.stdenv.mkDerivation {
38+
pname = "beads-rust";
39+
version = beadsRustVersion;
40+
src = pkgs.fetchurl {
41+
url = "https://github.com/Dicklesworthstone/beads_rust/releases/download/v${beadsRustVersion}/br-v${beadsRustVersion}-${beadsRustTargets.${system}}.tar.gz";
42+
hash = beadsRustHashes.${system};
43+
};
44+
sourceRoot = ".";
45+
installPhase = ''
46+
mkdir -p $out/bin
47+
cp br $out/bin/
48+
chmod +x $out/bin/br
49+
'';
50+
meta = {
51+
description = "AI-supervised issue tracker (Rust rewrite)";
52+
homepage = "https://github.com/Dicklesworthstone/beads_rust";
53+
license = pkgs.lib.licenses.mit;
54+
};
55+
};
2456
in
2557
{
2658
default = pkgs.mkShell {
27-
packages = with pkgs; [
59+
packages = [
60+
beads-rust
61+
] ++ (with pkgs; [
2862
git
29-
go
3063
gh
3164
jujutsu
3265
ripgrep
3366
(python3.withPackages (ps: with ps; [
3467
pip
3568
]))
36-
];
69+
]);
3770

3871
shellHook = ''
3972
# === Claude Loop Setup (ralph_wiggum) ===
@@ -54,11 +87,7 @@
5487
fi
5588
done
5689
57-
if ! command -v bd &> /dev/null; then
58-
echo "📿 Installing beads (bd) for AI agent task tracking..."
59-
go install github.com/steveyegge/beads/cmd/bd@v0.49.1
60-
fi
61-
echo " Beads: $(bd --version 2>/dev/null || echo 'run: go install github.com/steveyegge/beads/cmd/bd@v0.49.1')"
90+
echo " Beads: $(br --version)"
6291
echo ""
6392
'';
6493
};

0 commit comments

Comments
 (0)