fix(romm): include version 5.4 runtime dependencies
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user