kathara-venv/shell.nix
2025-03-27 11:09:41 +01:00

28 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
'';
}