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": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742889210,
|
"lastModified": 1743315132,
|
||||||
"narHash": "sha256-hw63HnwnqU3ZQfsMclLhMvOezpM7RSB0dMAtD5/sOiw=",
|
"narHash": "sha256-6hl6L/tRnwubHcA4pfUUtk542wn2Om+D4UnDhlDW9BE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "698214a32beb4f4c8e3942372c694f40848b360d",
|
"rev": "52faf482a3889b7619003c0daec593a1912fddc1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
12
shell.nix
12
shell.nix
|
@ -2,7 +2,7 @@
|
||||||
mkShell,
|
mkShell,
|
||||||
python3Packages,
|
python3Packages,
|
||||||
}: let
|
}: let
|
||||||
inherit (python3Packages) python venvShellHook;
|
inherit (python3Packages) python pyuv venvShellHook;
|
||||||
in
|
in
|
||||||
mkShell {
|
mkShell {
|
||||||
name = "impurePythonEnv";
|
name = "impurePythonEnv";
|
||||||
|
@ -10,19 +10,23 @@ in
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python
|
python
|
||||||
|
|
||||||
|
pyuv
|
||||||
|
|
||||||
venvShellHook
|
venvShellHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# Run this command, only after creating the virtual environment
|
|
||||||
postVenvCreation = ''
|
postVenvCreation = ''
|
||||||
unset SOURCE_DATE_EPOCH
|
unset SOURCE_DATE_EPOCH
|
||||||
pip install kathara
|
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 = ''
|
postShellHook = ''
|
||||||
# allow pip to install wheels
|
# allow pip to install wheels
|
||||||
unset SOURCE_DATE_EPOCH
|
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