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.

nix: pin nixpkgs to the nixos-26.05 release branch

gerrydorocb0b08b026f6
diff --git a/contrib/nix/flake.lock b/contrib/nix/flake.lock
index effd00b37..4b9ffca0e 100644
--- a/contrib/nix/flake.lock
+++ b/contrib/nix/flake.lock
@@ -20,16 +20,16 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1787498568,
- "narHash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30=",
+ "lastModified": 1791353474,
+ "narHash": "sha256-v72qr4LsSz61tQki/41nHKZKPY6NSeZavtGlAInOCng=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188",
+ "rev": "2efa67fd26b6df417c33e4603185c701f260dd83",
"type": "github"
},
"original": {
"owner": "NixOS",
- "ref": "nixos-unstable",
+ "ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
diff --git a/contrib/nix/flake.nix b/contrib/nix/flake.nix
index 922df8b01..a0c75218d 100644
--- a/contrib/nix/flake.nix
+++ b/contrib/nix/flake.nix
@@ -2,7 +2,10 @@
description = "openGym — self-hosted gym & body-weight tracker";
inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ # A release branch, not nixos-unstable: this flake is contributed packaging that has to
+ # keep evaluating for self-hosters on a channel. unstable has moved on to 26.11, which
+ # already dropped x86_64-darwin — one of the systems eachDefaultSystem evaluates.
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
flake-utils.url = "github:numtide/flake-utils";
};
@@ -215,7 +218,7 @@
{ pkgs, ... }:
{
imports = [ ./opengym.nix ];
- _module.args.opengymPkgs = self.packages.${pkgs.system} or null;
+ _module.args.opengymPkgs = self.packages.${pkgs.stdenv.hostPlatform.system} or null;
};
nixosModules.default = self.nixosModules.opengym;
diff --git a/docs/NIX.md b/docs/NIX.md
index 08534951c..736ae549b 100644
--- a/docs/NIX.md
+++ b/docs/NIX.md
@@ -9,8 +9,8 @@ managed by your NixOS configuration. This document covers both.
### What the flake provides
-`contrib/nix/flake.nix` (inputs: `nixpkgs` on `nixos-unstable`, `flake-utils`) exposes, per
-supported system:
+`contrib/nix/flake.nix` (inputs: `nixpkgs` pinned to the `nixos-26.05` release branch,
+`flake-utils`) exposes, per supported system:
| Output | What it is |
| --- | --- |