aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 170fe8d529c1948b61e803e1886ece907ce61c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem
      (system:
        let pkgs = nixpkgs.legacyPackages.${system};
        in { devShell = pkgs.mkShell {
          buildInputs = with pkgs; [
            (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
              sqlite
              watchexec
              sanic
              setuptools
            ]))
          ];
          shellHook = ''
            export DEBUG="TRUE"
            export HOST="127.0.0.1"
            export PORT="8080"
            export KEY="1234"
          '';
        }; }
      );
}