-
Notifications
You must be signed in to change notification settings - Fork 3
/
shell.nix
60 lines (55 loc) · 1.29 KB
/
shell.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
{ pkgs }:
let
pname = "slack-logger-python";
vsextensions = (with pkgs.vscode-extensions; [
ms-azuretools.vscode-docker
ms-python.python
ms-vsliveshare.vsliveshare
redhat.vscode-yaml
streetsidesoftware.code-spell-checker
vscodevim.vim
matangover.mypy
charliermarsh.ruff
]) ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
publisher = "42Crunch";
name = "vscode-openapi";
version = "4.18.4";
sha256 = "sha256-lv4dUJDOFPemvS8YTD12/PjeTevWhR76Ex8qHjQH3vY=";
}
{
publisher = "ms-python";
name = "black-formatter";
version = "2023.5.11841009";
sha256 = "sha256-zmEDAdj/7ZyzXzh+iPes6LMIA7+63wZZB2ZD65kKp8I=";
}
{
publisher = "ms-python";
name = "isort";
version = "2023.9.11781018";
sha256 = "sha256-ev+gSQP+Q1AEw+r1Uahi1TI+docalcC1iWO29N1L5VE=";
}
];
vscode-slack-logger = pkgs.vscode-with-extensions.override {
vscodeExtensions = vsextensions;
};
python-pkgs = ps: with ps; [
pip
virtualenv
];
plugin-python = pkgs.python310.withPackages python-pkgs;
in
pkgs.mkShell {
packages = with pkgs; [
plugin-python
git
black
isort
ruff
mypy
vscode-slack-logger
];
shellHook = ''
echo "Welcome to the ${pname} project"
'';
}