2024-02-24 08:12:51 +00:00
|
|
|
with import <nixpkgs> { };
|
2024-05-10 05:44:59 +00:00
|
|
|
pkgs.mkShell {
|
|
|
|
name = "onix-shellder";
|
2024-02-24 08:12:51 +00:00
|
|
|
venvDir = "./.venv";
|
|
|
|
buildInputs = [
|
|
|
|
python310Packages.python
|
|
|
|
python310Packages.venvShellHook
|
|
|
|
|
|
|
|
# Required dependancies
|
2024-03-05 06:53:45 +00:00
|
|
|
black
|
2024-02-24 08:12:51 +00:00
|
|
|
taglib
|
|
|
|
openssl
|
|
|
|
git
|
|
|
|
libxml2
|
|
|
|
libxslt
|
|
|
|
libzip
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# Run this command, only after creating the virtual environment
|
|
|
|
postVenvCreation = ''
|
|
|
|
unset SOURCE_DATE_EPOCH
|
|
|
|
pip install -r requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
postShellHook = ''
|
|
|
|
# allow pip to install wheels
|
|
|
|
unset SOURCE_DATE_EPOCH
|
2024-05-10 05:44:59 +00:00
|
|
|
zsh -l
|
2024-02-24 08:12:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|