inital commit
This commit is contained in:
28
flake.nix
Normal file
28
flake.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
description = "Python Flask environment with SQLite support";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixpkgs/nixos-unstable";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.sqlite-interactive
|
||||
(pkgs.python3.withPackages (ps: [ ps.flask ]))
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "--- Flask + SQLite Environment ---"
|
||||
echo "To view logs: sqlite3 logs.db 'SELECT * FROM post_logs;'"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user