initial commit
This commit is contained in:
commit
193ab79228
4 changed files with 88 additions and 0 deletions
28
shell.nix
Normal file
28
shell.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue