From f08de43ffc7f825cd10b17255943826f3be25236 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 8 Dec 2024 10:09:13 -0500 Subject: [PATCH] install ruff from nixpkgs because ruff is a rust binary and not an actual python module, it cannot run on NixOS natively. that means that installing it through `uv sync` or `uv tool run ruff` does NOT work, and we need to install the `pkgs.python311Packages.ruff` package from nixpkgs instead --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 2c1163a..f5a1516 100644 --- a/flake.nix +++ b/flake.nix @@ -44,6 +44,9 @@ inherit inputs pkgs; modules = [ { + packages = [ + pkgs.python311Packages.ruff + ]; languages.python = { enable = true; version = "3.11";