-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathdevenv.nix
More file actions
32 lines (28 loc) · 626 Bytes
/
devenv.nix
File metadata and controls
32 lines (28 loc) · 626 Bytes
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
{ pkgs, lib, config, inputs, ... }:
{
packages = [
pkgs.git
pkgs.swagger-cli
pkgs.twine
pkgs.woodpecker-cli
pkgs.xmlsec
pkgs.gettext
pkgs.python312Packages.pyls-flake8
pkgs.python312Packages.pylsp-rope
pkgs.python312Packages.python-lsp-server
pkgs.python312Packages.xmlsec
pkgs.python312Packages.build
];
# https://devenv.sh/languages/
languages.python = {
enable = true;
package = pkgs.python312;
venv.enable = true;
venv.requirements = ''
-r ${./.}/requirements-dev.txt
'';
};
enterShell = ''
source $VIRTUAL_ENV/bin/activate
'';
}