mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 从 nixpkgs 增加 numpy 依赖,以避免出现 libc++.so 找不到的问题
parent
26782c9181
commit
e54038f3d0
|
|
@ -21,13 +21,14 @@
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pythonPackages.python
|
pythonPackages.python
|
||||||
pythonPackages.venvShellHook
|
pythonPackages.venvShellHook
|
||||||
|
pythonPackages.numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
postVenvCreation = ''
|
postVenvCreation = ''
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postShellHook = ''
|
postShellHook = ''
|
||||||
# allow pip to install wheels
|
# allow pip to install wheels
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue