From 343c9e003483eee3cb46a13db7ee4e39b8731a84 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 11 Feb 2026 20:55:08 -0500 Subject: [PATCH] Tweaks per the `copilot` PR review --- flake.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 1d30ba6b..b46ef43c 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ # https://pyproject-nix.github.io/pyproject.nix/templates.html#impure # https://github.com/pyproject-nix/pyproject.nix/blob/master/templates/impure/flake.nix { - description = "An impure overlay using `uv` with Nix(OS)"; + description = "An impure overlay (w dev-shell) using `uv`"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; @@ -29,17 +29,17 @@ { default = pkgs.mkShell { - packages = with pkgs; [ + packages = [ # XXX, ensure sh completions activate! - bashInteractive - bash-completion + pkgs.bashInteractive + pkgs.bash-completion - # on nixos, use pkg(s) - ruff - pypkgs.ruff + # XXX, on nix(os), use pkgs version to avoid + # build/sys-sh-integration issues + pkgs.ruff - uv - python313 # ?TODO^ how to set from `cpython` above? + pkgs.uv + pkgs.${cpython}# ?TODO^ how to set from `cpython` above? ]; shellHook = '' @@ -56,7 +56,7 @@ # - always use the ./py313/ venv-subdir # - sync env with all extras export UV_PROJECT_ENVIRONMENT=${venv_dir} - uv sync --dev --all-extras --no-group lint + uv sync --dev --all-extras # ------ TIPS ------ # NOTE, to launch the py-venv installed `xonsh` (like @goodboy)