updat flak
This commit is contained in:
parent
578ddba8c1
commit
71c1c36f5e
2 changed files with 11 additions and 7 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1742889210,
|
||||
"narHash": "sha256-hw63HnwnqU3ZQfsMclLhMvOezpM7RSB0dMAtD5/sOiw=",
|
||||
"lastModified": 1743315132,
|
||||
"narHash": "sha256-6hl6L/tRnwubHcA4pfUUtk542wn2Om+D4UnDhlDW9BE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "698214a32beb4f4c8e3942372c694f40848b360d",
|
||||
"rev": "52faf482a3889b7619003c0daec593a1912fddc1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
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