|
13 | 13 | outputs = { self, nixpkgs, systems, prompts, ... }: |
14 | 14 | let |
15 | 15 | 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 | + }; |
16 | 28 | in |
17 | 29 | { |
18 | 30 | devShells = forEachSystem |
|
21 | 33 | pkgs = import nixpkgs { |
22 | 34 | inherit system; |
23 | 35 | }; |
| 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 | + }; |
24 | 56 | in |
25 | 57 | { |
26 | 58 | default = pkgs.mkShell { |
27 | | - packages = with pkgs; [ |
| 59 | + packages = [ |
| 60 | + beads-rust |
| 61 | + ] ++ (with pkgs; [ |
28 | 62 | git |
29 | | - go |
30 | 63 | gh |
31 | 64 | jujutsu |
32 | 65 | ripgrep |
33 | 66 | (python3.withPackages (ps: with ps; [ |
34 | 67 | pip |
35 | 68 | ])) |
36 | | - ]; |
| 69 | + ]); |
37 | 70 |
|
38 | 71 | shellHook = '' |
39 | 72 | # === Claude Loop Setup (ralph_wiggum) === |
|
54 | 87 | fi |
55 | 88 | done |
56 | 89 |
|
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)" |
62 | 91 | echo "" |
63 | 92 | ''; |
64 | 93 | }; |
|
0 commit comments