Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,18 @@
# Self-packaged tools (updated via nix-update in CI)
localPkgsFor = system: let
p = pkgsFor system;
unstablePkgs = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
goose = p.callPackage ./pkgs/goose { };
goose-link = p.callPackage ./pkgs/goose-link { };
ro-shell = p.callPackage ./pkgs/ro-shell { };
cfp = p.callPackage ./pkgs/claude-failover-proxy { };
in {
# Claude Code from nixpkgs-unstable (>= 2.1.280 required by Vertex for
# claude-opus-5-5; stable nixpkgs 26.05 ships 2.1.223 which 400s).
claude-code = unstablePkgs.claude-code;
ask-question = p.callPackage ./pkgs/ask-question { };
# Named `bazel-scope` rather than `bazel`: the DERIVATION provides bin/bazel
# (it has to shadow the real one on PATH), but a flake output called `bazel`
Expand Down Expand Up @@ -2988,7 +2995,7 @@

claude-breakglass = devboxPkgs.runCommand "claude-breakglass-tests" {
nativeBuildInputs = [ devboxPkgs.bash devboxPkgs.coreutils devboxPkgs.gnugrep ];
CLAUDE_BREAKGLASS_BIN = "${devboxPkgs.callPackage ./pkgs/claude-breakglass { claudeCode = devboxPkgs.claude-code; }}/bin/claude-breakglass";
CLAUDE_BREAKGLASS_BIN = "${devboxPkgs.callPackage ./pkgs/claude-breakglass { claudeCode = (localPkgsFor devboxSystem).claude-code; }}/bin/claude-breakglass";
} ''
bash ${self}/pkgs/claude-breakglass/test.sh | tee "$TMPDIR/out.txt"
grep -q '^claude-breakglass: 26 passed, 0 failed$' "$TMPDIR/out.txt" || {
Expand Down
6 changes: 3 additions & 3 deletions users/dev/breakglass.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# tool call per wrapper (Linux systemd user timer on cloudbox & devbox;
# cloudbox also pins BREAKGLASS_PROBE_CLAUDE_MODEL explicitly to match
# claude-breakglass's Vertex default).
{ config, pkgs, lib, isDevbox, isCloudbox, isDarwin, ... }:
{ config, pkgs, lib, localPkgs, isDevbox, isCloudbox, isDarwin, ... }:

let
gooseCli = pkgs.callPackage ../../pkgs/goose { };
Expand All @@ -23,7 +23,7 @@ let
};

claudeBreakglass = pkgs.callPackage ../../pkgs/claude-breakglass {
claudeCode = pkgs.claude-code;
claudeCode = localPkgs.claude-code;
hostMode = if isDevbox then "max" else "vertex";
};

Expand All @@ -34,7 +34,7 @@ in
lib.mkIf (isCloudbox || isDevbox || isDarwin) (lib.mkMerge [
{
home.packages = [
pkgs.claude-code
localPkgs.claude-code
gooseBreakglass
claudeBreakglass
breakglassProbe
Expand Down
Loading