Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

fix(nix): include api/coach/core in frontend build source

gerrydoro6fa5cb817923
diff --git a/nix/frontend.nix b/nix/frontend.nix
index 0e13378d3..103855872 100644
--- a/nix/frontend.nix
+++ b/nix/frontend.nix
@@ -10,11 +10,14 @@ buildNpmPackage rec {
pname = "opengym-frontend";
inherit version;
- src = ./../frontend;
+ # The frontend imports api/coach/core/* (../../../api/coach/core/…), so the build
+ # needs the repo root — same layout the Dockerfile uses (see web/Dockerfile).
+ src = ./..;
+ npmRoot = "frontend";
nodejs = nodejs_22;
- npmDeps = importNpmLock { npmRoot = src; };
+ npmDeps = importNpmLock { npmRoot = src + "/frontend"; };
npmConfigHook = importNpmLock.npmConfigHook;
npmBuildScript = "build";
diff --git a/nix/version.nix b/nix/version.nix
index 45c3fe93d..8f2ae75d6 100644
--- a/nix/version.nix
+++ b/nix/version.nix
@@ -1,8 +1,8 @@
# Single source of truth for the openGym release version and the pinned exercise-dataset
# commit the media packages (build-time media.nix and runtime media-script.nix) agreed on.
{
- version = "1.2.14";
+ version = "1.3.1";
# hasaneyldrm/exercises-dataset — same commit for build-time fetch and runtime download.
datasetRev = "7455efae41b330c265e7cd4b78dfa848e7ce5ebd";
-}
\ No newline at end of file
+}