From 185669d69be4ce89300851e595d94fcdd3275c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 15 Jan 2024 16:17:16 +0200 Subject: [PATCH] rename remaining `e11sync` to `e11sync-backend` --- flake.nix | 32 ++++++++--------------- pkgs/{e11sync.nix => e11sync-backend.nix} | 0 2 files changed, 11 insertions(+), 21 deletions(-) rename pkgs/{e11sync.nix => e11sync-backend.nix} (100%) diff --git a/flake.nix b/flake.nix index 9966aa5..5862e1a 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ inherit e11sync-static; }; - e11sync = pkgs.callPackage ./pkgs/e11sync.nix { + e11sync-backend = pkgs.callPackage ./pkgs/e11sync-backend.nix { inherit geoip-mmdb; uwsgi = pkgs.uwsgi.override {plugins = ["python3"];}; }; @@ -57,11 +57,11 @@ inherit geoip-mmdb; inherit e11sync-static; inherit e11sync-frontend; - inherit e11sync; + inherit e11sync-backend; }; checks = { - e11sync-unit = e11sync.passthru.tests.unit; + e11sync-unit = e11sync-backend.passthru.tests.unit; pre-commit-check = pre-commit-hooks.lib.${system}.run { src = ./.; hooks = { @@ -79,24 +79,6 @@ # 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 - ''); - }; - # uwsgi - e11sync-backend = { - type = "app"; - name = "e11sync-backend"; - program = toString (pkgs.writeShellScript "wrapper" '' - export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3 - exec ${e11sync}/bin/e11sync-backend - ''); - }; e11sync-frontend = { type = "app"; name = "e11sync-frontend"; @@ -119,6 +101,14 @@ exec ${pkgs.caddy}/bin/caddy run --config ${caddyFile} --adapter caddyfile ''); }; + e11sync-backend = { + type = "app"; + name = "e11sync-backend"; + program = toString (pkgs.writeShellScript "wrapper" '' + export E11SYNC_DATABASE_PATH=$PWD/db.sqlite3 + exec ${e11sync-backend}/bin/e11sync-backend + ''); + }; }; devShells.default = pkgs.mkShellNoCC { diff --git a/pkgs/e11sync.nix b/pkgs/e11sync-backend.nix similarity index 100% rename from pkgs/e11sync.nix rename to pkgs/e11sync-backend.nix