From 78246dde2d79201b21d87032c06410c67a9610e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 15 Jan 2024 10:38:08 +0200 Subject: [PATCH] run e11sync from nix store --- flake.nix | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) 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 {