From 2ca3a5a912d6f7b1eb79f7b8db1fc83727330ac1 Mon Sep 17 00:00:00 2001 From: alexion Date: Tue, 20 Oct 2026 23:55:03 -0400 Subject: [PATCH] fix(romm): include version 5.4 runtime dependencies --- src/flake/packages/romm.nix | 74 ++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/src/flake/packages/romm.nix b/src/flake/packages/romm.nix index 69e6c6d..24d2668 100644 --- a/src/flake/packages/romm.nix +++ b/src/flake/packages/romm.nix @@ -2,6 +2,7 @@ buildNpmPackage, fetchFromGitHub, lib, + python3, romm, }: romm.overrideAttrs ( @@ -24,6 +25,67 @@ romm.overrideAttrs ( runHook postInstall ''; }; + + # RomM 5.4 requires packages absent from the Nixpkgs 5.2 environment. + pythonEnv = python3.withPackages ( + ps: with ps; [ + aiohttp + alembic + anyio + apprise + asyncssh + authlib + bcrypt + colorama + croniter + cryptography + defusedxml + email-validator + fastapi + gunicorn + httpx + httpx2 + itsdangerous + jinja2 + joserfc + mariadb + mutagen + mysql-connector-python + opentelemetry-distro + opentelemetry-exporter-otlp + opentelemetry-instrumentation-aiohttp-client + opentelemetry-instrumentation-fastapi + opentelemetry-instrumentation-httpx + opentelemetry-instrumentation-redis + opentelemetry-instrumentation-sqlalchemy + passlib + pillow + psycopg + pydantic + pydash + python-dotenv + python-magic + python-multipart + python-socketio + pyyaml + redis + rq + rq-scheduler + sentry-sdk + sqlalchemy + starlette + streaming-form-data + strsimpy + ua-parser + unidecode + uvicorn + uvicorn-worker + watchfiles + yarl + zipfile-inflate64 + zstandard + ] + ); in { version = "5.4.0"; @@ -44,11 +106,19 @@ romm.overrideAttrs ( ''; installPhase = - lib.replaceStrings [ "${previousAttrs.passthru.frontend}" ] [ "${frontend}" ] + lib.replaceStrings + [ + "${previousAttrs.passthru.frontend}" + "${previousAttrs.passthru.pythonEnv}" + ] + [ + "${frontend}" + "${pythonEnv}" + ] previousAttrs.installPhase; passthru = previousAttrs.passthru // { - inherit frontend; + inherit frontend pythonEnv; }; } )