diff --git a/flake.nix b/flake.nix index 11ad656..136275e 100644 --- a/flake.nix +++ b/flake.nix @@ -77,13 +77,26 @@ ''; }; - apps.e11sync-gunicorn = { - type = "app"; - name = "e11sync-gunicorn"; - program = toString (pkgs.writeShellScript "wrapper" '' - export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3 - exec ${e11sync}/bin/e11sync-gunicorn - ''); + # Run e11sync tools from the nix store + apps = { + # manage.py + e11sync = { + type = "app"; + name = "e11sync"; + program = toString (pkgs.writeShellScript "wrapper" '' + export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3 + exec ${e11sync}/bin/e11sync + ''); + }; + # wsgi/gunicorn + e11sync-gunicorn = { + type = "app"; + name = "e11sync-gunicorn"; + program = toString (pkgs.writeShellScript "wrapper" '' + export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3 + exec ${e11sync}/bin/e11sync-gunicorn + ''); + }; }; devShells.default = pkgs.mkShellNoCC {