From 1f73d901d569546aebd9a477db810230d8b2a95e Mon Sep 17 00:00:00 2001 From: TapTap Date: Fri, 13 Nov 2026 11:47:10 +0000 Subject: [PATCH] chore: add Nix dev shell with JDK 21, Gradle and ffmpeg --- README | 1 + shell.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 shell.nix diff --git a/README b/README index d2a63c5..dceeaee 100644 --- a/README +++ b/README @@ -390,6 +390,7 @@ cp config/library.example.yaml config/library.yaml cp config/users.example.yaml config/users.yaml mkdir -p media/music media/longform # edit the paths in config/library.yaml to point at ./media/* +nix-shell # optional: JDK 21, Gradle, ffmpeg and sqlite ./gradlew run ``` diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..aac77bf --- /dev/null +++ b/shell.nix @@ -0,0 +1,19 @@ +{ pkgs ? import { } }: + +pkgs.mkShell { + packages = with pkgs; [ + jdk21 + gradle + ffmpeg + sqlite + git + curl + ]; + + JAVA_HOME = "${pkgs.jdk21}/lib/openjdk"; + + shellHook = '' + echo "MusicManager dev shell (JDK 21, Gradle, ffmpeg, sqlite)" + java -version + ''; +}