feat: refactor devshell as modular standalone path lol
This commit is contained in:
parent
41546aa83a
commit
9e6791569e
9 changed files with 284 additions and 79 deletions
12
devshells/python-uv.nix
Normal file
12
devshells/python-uv.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, python ? pkgs.python312, ... }:
|
||||
|
||||
pkgs.mkShell {
|
||||
name = "python-uv";
|
||||
packages = [ python pkgs.uv pkgs.ruff pkgs.pyright ];
|
||||
shellHook = ''
|
||||
export UV_PYTHON="${python}/bin/python3"
|
||||
export UV_LINK_MODE=copy
|
||||
echo "Python (uv) shell ready"
|
||||
echo "Python: ${python.version}"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue