run e11sync from nix store
This commit is contained in:
parent
98b4044171
commit
78246dde2d
27
flake.nix
27
flake.nix
@ -77,13 +77,26 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
apps.e11sync-gunicorn = {
|
# Run e11sync tools from the nix store
|
||||||
type = "app";
|
apps = {
|
||||||
name = "e11sync-gunicorn";
|
# manage.py
|
||||||
program = toString (pkgs.writeShellScript "wrapper" ''
|
e11sync = {
|
||||||
export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3
|
type = "app";
|
||||||
exec ${e11sync}/bin/e11sync-gunicorn
|
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 {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
|
Loading…
Reference in New Issue
Block a user