summaryrefslogtreecommitdiff
path: root/nix/server.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/server.nix')
-rw-r--r--nix/server.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nix/server.nix b/nix/server.nix
new file mode 100644
index 0000000..18e4673
--- /dev/null
+++ b/nix/server.nix
@@ -0,0 +1,13 @@
+{
+ writeShellApplication,
+ python311,
+ guzzle-api,
+ ...
+}:
+writeShellApplication {
+ name = "guzzle-api-server";
+ runtimeInputs = [(python311.withPackages (p: [p.uvicorn guzzle-api]))];
+ text = ''
+ uvicorn guzzle_api.api:app "$@"
+ '';
+}