29 lines
615 B
Nix
29 lines
615 B
Nix
|
{
|
||
|
mkShell,
|
||
|
python3Packages,
|
||
|
}: let
|
||
|
inherit (python3Packages) python venvShellHook;
|
||
|
in
|
||
|
mkShell {
|
||
|
name = "impurePythonEnv";
|
||
|
venvDir = "./.venv";
|
||
|
buildInputs = [
|
||
|
python
|
||
|
|
||
|
venvShellHook
|
||
|
];
|
||
|
|
||
|
# Run this command, only after creating the virtual environment
|
||
|
postVenvCreation = ''
|
||
|
unset SOURCE_DATE_EPOCH
|
||
|
pip install kathara
|
||
|
'';
|
||
|
|
||
|
# Now we can execute any commands within the virtual environment.
|
||
|
# This is optional and can be left out to run pip manually.
|
||
|
postShellHook = ''
|
||
|
# allow pip to install wheels
|
||
|
unset SOURCE_DATE_EPOCH
|
||
|
'';
|
||
|
}
|