From 0cd0b9582dfb8397e28c06fed9550dc692069303 Mon Sep 17 00:00:00 2001 From: TapTap Date: Sat, 14 Nov 2026 21:33:45 +0000 Subject: [PATCH] chore: extend the nix dev shell with Python and deployment tools The smoke script needs Python, and Helm/Kustomize/kubectl cover the deployment workflow. JAVA_HOME now uses the package home attribute. --- README.md | 2 +- shell.nix | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aad9cb2..439e4bb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ AudioManager replaces static playlists with **moods**: curated anchors plus a ra ## Quick start -Requirements: JDK 21, ffmpeg, SQLite (bundled through JDBC). +Requirements: JDK 21, ffmpeg, SQLite (bundled through JDBC). With Nix, `nix-shell` provides the JDK, Gradle, ffmpeg, sqlite, Python, Helm, Kustomize and kubectl. ```bash # 1. Build diff --git a/shell.nix b/shell.nix index aac77bf..3b32f46 100644 --- a/shell.nix +++ b/shell.nix @@ -8,12 +8,20 @@ pkgs.mkShell { sqlite git curl + python3 + kubernetes-helm + kustomize + kubectl ]; - JAVA_HOME = "${pkgs.jdk21}/lib/openjdk"; + JAVA_HOME = pkgs.jdk21.home; shellHook = '' - echo "MusicManager dev shell (JDK 21, Gradle, ffmpeg, sqlite)" + echo "MusicManager dev shell (JDK 21, Gradle, ffmpeg, sqlite, helm, kustomize)" java -version + echo "" + echo "Test: gradle test" + echo "Smoke: GRADLE=gradle scripts/smoke.sh" + echo "Image: docker build -t audiomanager ." ''; }