diff options
| author | seth <[email protected]> | 2023-04-23 02:27:01 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-23 02:27:01 -0400 |
| commit | ee17bbadfed47af24572919d143f260c9c57bb36 (patch) | |
| tree | d3fbb67ff1bd6d0857cb5e9d97cf04b2945c48d4 /nix/server.nix | |
| parent | 3c02d2353d8bdfd2b6e5a09ac17214bae76664d7 (diff) | |
feat: add nix flake
Diffstat (limited to 'nix/server.nix')
| -rw-r--r-- | nix/server.nix | 13 |
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 "$@" + ''; +} |
