Always add uv package to pyshell
This commit is contained in:
parent
194bb8bca9
commit
ebe37c815e
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
python3 ? pkgs.python3Full,
|
||||
extraPackages ? with pkgs; [ uv ],
|
||||
extraPackages ? [ ],
|
||||
extraLibs ? [ ],
|
||||
}:
|
||||
let
|
||||
|
@ -26,7 +26,10 @@ let
|
|||
};
|
||||
in
|
||||
pkgs.mkShellNoCC {
|
||||
packages = [ pythonWrapped ] ++ extraPackages;
|
||||
packages = [
|
||||
pythonWrapped
|
||||
pkgs.uv
|
||||
] ++ extraPackages;
|
||||
shellHook = ''
|
||||
[ ! -d .venv ] && ${pythonWrapped}/bin/python3 -m venv .venv
|
||||
[ -f .venv/bin/activate ] && source .venv/bin/activate
|
||||
|
|
Loading…
Reference in a new issue