-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdefault.nix
More file actions
36 lines (30 loc) · 606 Bytes
/
default.nix
File metadata and controls
36 lines (30 loc) · 606 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
with import <nixpkgs> { };
pkgs.mkShell {
name = "onix-shellder";
venvDir = "./.venv";
buildInputs = [
python313Packages.python
python313Packages.venvShellHook
# Required dependencies
# Python
python313Packages.black
# misc
taglib
openssl
git
libxml2
libxslt
libzip
zlib
];
# Runs after creating the virtual environment
postVenvCreation = ''
unset SOURCE_DATE_EPOCH
pip install -r requirements.txt
'';
postShellHook = ''
unset SOURCE_DATE_EPOCH
# use z shell, run exit to get back to default bash
zsh -l
'';
}