-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
60 lines (58 loc) · 1.85 KB
/
flake.nix
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
description = "Day Planner and Investment Tracker";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
#enableIDE = true;
#idePackages = if enableIDE then import ./ide-packages.nix {inherit pkgs; } else [];
in {
devShell = pkgs.mkShell {
name = "day-planner-env";
buildInputs = with pkgs; [
curl
direnv
sqlite
nodejs
python311
# Project Lib
python311Packages.pip
python311Packages.pandas
python311Packages.openpyxl
python311Packages.matplotlib
python311Packages.flask
python311Packages.sqlalchemy
python311Packages.flask-sqlalchemy
python311Packages.flask-migrate
python311Packages.flask-login
python311Packages.flask-bcrypt
python311Packages.pytest
python311Packages.pytest-flask
# Emacs pyIDE libs
python311Packages.jedi
python311Packages.black
python311Packages.flake8
python311Packages.sentinel
python311Packages.python-lsp-server
python311Packages.virtualenv
python311Packages.pyflakes # Linter Pyflakes
# Extra Emacs Packages
emacsPackages.web-mode
emacsPackages.lsp-mode
emacsPackages.emmet-mode
emacsPackages.flycheck
emacsPackages.lsp-ui
prettierd
emacs
];
shellHook = ''
echo "Welcome to the Day Planner and Investment Tracker environment!"
'';
};
}
);
}