Skip to content

Commit 6bcfe5e

Browse files
testac974claude
andcommitted
Use devbox base flake for common dev tools
Inherit git, gh, claude, aws, jq, vim, shellcheck, etc. from testaco/devbox base-flake instead of managing them separately. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b18cb1e commit 6bcfe5e

2 files changed

Lines changed: 166 additions & 14 deletions

File tree

β€Žflake.lockβ€Ž

Lines changed: 142 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žflake.nixβ€Ž

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
66
flake-utils.url = "github:numtide/flake-utils";
7+
8+
# Devbox base platform - provides git, gh, claude, aws, shell tools, etc.
9+
devbox.url = "github:testaco/devbox?dir=base-flake";
710
};
811

9-
outputs = { self, nixpkgs, flake-utils }:
12+
outputs = { self, nixpkgs, flake-utils, devbox }:
1013
flake-utils.lib.eachDefaultSystem (system:
1114
let
1215
pkgs = import nixpkgs {
@@ -105,13 +108,17 @@
105108
devShells.default = pkgs.mkShell {
106109
name = "agentic-coding-book-dev";
107110

111+
# Inherit all base platform tools from devbox (git, gh, claude, aws, jq, etc.)
112+
inputsFrom = [
113+
devbox.devShells.${system}.default
114+
];
115+
108116
buildInputs = [
109117
# Core build tools
110118
nodejs
111119
pkgs.pandoc
112120
texlive
113121
python
114-
pkgs.git
115122

116123
# Chromium for Mermaid diagram rendering (Puppeteer)
117124
pkgs.chromium
@@ -135,13 +142,18 @@
135142
# Disable sandboxing for Chromium in containers/Nix environments
136143
export PUPPETEER_ARGS="--no-sandbox --disable-setuid-sandbox"
137144
138-
echo "πŸš€ Agentic Coding Book Development Environment"
139-
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
140-
echo "πŸ“¦ Node.js: $(node --version)"
141-
echo "πŸ“„ Pandoc: $(pandoc --version | head -1)"
142-
echo "🐍 Python: $(python --version)"
143-
echo "πŸ“ TeX Live: $(xelatex --version | head -1)"
144-
echo "🌐 Chromium: $(chromium --version)"
145+
echo "Agentic Coding Book Development Environment"
146+
echo "============================================"
147+
echo ""
148+
echo "Base platform tools inherited from devbox:"
149+
echo " git, gh, claude, aws, jq, vim, shellcheck, etc."
150+
echo ""
151+
echo "Project-specific tools:"
152+
echo " Node.js: $(node --version)"
153+
echo " Pandoc: $(pandoc --version | head -1)"
154+
echo " Python: $(python --version)"
155+
echo " TeX Live: $(xelatex --version | head -1)"
156+
echo " Chromium: $(chromium --version)"
145157
echo ""
146158
echo "Available commands:"
147159
echo " npm install - Install Node.js dependencies"
@@ -154,12 +166,12 @@
154166
155167
# Install npm dependencies if not already installed
156168
if [ ! -d "node_modules" ]; then
157-
echo "πŸ“¦ Installing npm dependencies..."
169+
echo "Installing npm dependencies..."
158170
npm install
159171
fi
160172
161-
echo "βœ“ Ready to build!"
162-
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
173+
echo "Ready to build!"
174+
echo "============================================"
163175
'';
164176

165177
# Environment variables

0 commit comments

Comments
Β (0)