backend: make familiar with `CACHE/manifest.json`
This commit is contained in:
parent
89ec12be1d
commit
39dd8acd90
|
@ -62,7 +62,7 @@
|
|||
};
|
||||
|
||||
e11sync-backend = pkgs.callPackage ./pkgs/e11sync-backend.nix {
|
||||
inherit geoip-mmdb;
|
||||
inherit geoip-mmdb e11sync-static;
|
||||
};
|
||||
in {
|
||||
packages = {
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
runCommand,
|
||||
makeWrapper,
|
||||
python3,
|
||||
python3Packages,
|
||||
libmaxminddb,
|
||||
dart-sass,
|
||||
uwsgi,
|
||||
backendPort ? 8002,
|
||||
databasePath ? null,
|
||||
geoip-mmdb,
|
||||
e11sync-static,
|
||||
}: let
|
||||
uwsgi-python = uwsgi.override {plugins = ["python3"];};
|
||||
pythonEnv =
|
||||
|
@ -50,17 +50,16 @@ in
|
|||
${lib.optionalString (databasePath != null) ''
|
||||
--set E11SYNC_DATABASE_PATH "${databasePath}" \
|
||||
''} \
|
||||
--set E11SYNC_DEBUG "" \
|
||||
--set E11SYNC_STATIC_ROOT "${e11sync-static}" \
|
||||
--set E11SYNC_COMPRESS_OFFLINE 1 \
|
||||
--set E11SYNC_DEBUG "" \
|
||||
--set GEOIP_PATH "${geoip-mmdb}" \
|
||||
'';
|
||||
passthru.tests.unit =
|
||||
runCommand "e11sync-test" {
|
||||
src = ../app;
|
||||
buildInputs = [
|
||||
python3Packages.django
|
||||
python3Packages.django-compressor
|
||||
python3Packages.geoip2
|
||||
pythonEnv
|
||||
dart-sass
|
||||
];
|
||||
} ''
|
||||
|
|
Loading…
Reference in New Issue