forked from buganart/unagan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
58 lines (48 loc) · 980 Bytes
/
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
with import ./nix/nixpkgs.nix {
overlays = [
(self: super:
{
blas = super.blas.override {
blasProvider = self.mkl;
};
lapack = super.lapack.override {
lapackProvider = self.mkl;
};
}
)
];
};
let
py = python3;
in
mkShell {
buildInputs = [
ffmpeg
entr
(py.withPackages (ps: with ps; [
# unagan dependencies
librosa
# ffmpeg-full leads to assertion error with blas override.
(pydub.override { ffmpeg-full = ffmpeg; })
click
pyyaml
pytorchWithCuda
scipy
pip
# dev deps
pudb # debugger
black
ipython
pyls-isort
pyls-black
pyls-mypy
python-language-server
]))
];
shellHook = ''
export PIP_PREFIX="$(pwd)/.build/pip_packages"
export PATH="$PIP_PREFIX/bin:$PATH"
export PYTHONPATH="$PIP_PREFIX/${py.sitePackages}:$PYTHONPATH"
unset SOURCE_DATE_EPOCH
'';
}