updat flak
This commit is contained in:
parent
578ddba8c1
commit
71c1c36f5e
2 changed files with 11 additions and 7 deletions
12
shell.nix
12
shell.nix
|
@ -2,7 +2,7 @@
|
|||
mkShell,
|
||||
python3Packages,
|
||||
}: let
|
||||
inherit (python3Packages) python venvShellHook;
|
||||
inherit (python3Packages) python pyuv venvShellHook;
|
||||
in
|
||||
mkShell {
|
||||
name = "impurePythonEnv";
|
||||
|
@ -10,19 +10,23 @@ in
|
|||
buildInputs = [
|
||||
python
|
||||
|
||||
pyuv
|
||||
|
||||
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
|
||||
|
||||
alias kat="python -m kathara"
|
||||
alias ks="python -m kathara lstart"
|
||||
alias kr="python -m kathara lrestart"
|
||||
alias kq="python -m kathara lclean"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue