diff --git a/devenv.nix b/devenv.nix index 6cf2d3264d..2286c4ef9c 100644 --- a/devenv.nix +++ b/devenv.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ lib, pkgs, ... }: # https://devenv.sh/reference/options/ { @@ -24,4 +24,12 @@ nvfetcher ] ++ unblob.runtimeDeps; + + tasks = { + "venv:patchelf" = { + exec = "${lib.getExe pkgs.patchelf} --set-interpreter ${pkgs.stdenv.cc.bintools.dynamicLinker} $VIRTUAL_ENV/bin/ruff"; + after = [ "devenv:python:poetry" ]; + before = [ "devenv:enterShell" ]; + }; + }; }