Migrate to actix

This commit is contained in:
2023-04-06 16:24:37 +09:00
parent d106988fd7
commit 5543bc4c9d
8 changed files with 535 additions and 734 deletions

View File

@@ -1,5 +1,4 @@
{pkgs ? import <nixpkgs> {}}: let
pwd = ./.;
venvDir = "./scanner/.venv";
pythonPkgs = ./scanner/requirements.txt;
in
@@ -26,7 +25,7 @@ in
# Install python modules
SOURCE_DATE_EPOCH=$(date +%s)
if [ ! -d "${venvDir}" ]; then
${pkgs.python3}/bin/python3 -m venv ${pwd}/${venvDir}
${pkgs.python3}/bin/python3 -m venv ${toString ./.}/${venvDir}
source ${venvDir}/bin/activate
export PIP_DISABLE_PIP_VERSION_CHECK=1
pip install -r ${pythonPkgs} >&2