-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathdevshell.nix
More file actions
56 lines (48 loc) · 1018 Bytes
/
devshell.nix
File metadata and controls
56 lines (48 loc) · 1018 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
mkShell,
python3,
git,
nix,
nix-eval-jobs,
nix-output-monitor,
bubblewrap,
delta,
treefmt,
nixfmt,
lib,
stdenv,
}:
mkShell {
name = "nixpkgs-review-dev";
buildInputs = [
# Python development
(python3.withPackages (ps: [
# Project dependencies
ps.argcomplete
# Development dependencies
ps.pytest
ps.pytest-xdist
ps.mypy
ps.ruff
# Build system
ps.setuptools
]))
# Project runtime dependencies
git
nix
nix-eval-jobs
# Optional tools
delta # for nicer diff display
# Development tools
treefmt
]
++ lib.optionals (!stdenv.hostPlatform.isRiscV64) [ nix-output-monitor ]
++ lib.optionals stdenv.hostPlatform.isLinux [ bubblewrap ]
++ lib.optionals (!stdenv.hostPlatform.isRiscV64) [ nixfmt ];
shellHook = ''
echo "nixpkgs-review development shell"
echo "Run tests with: pytest"
echo "Format code with: nix fmt"
echo "Type check with: mypy nixpkgs_review"
'';
}