As in the title; how can I override a python version’s withPackages to use the packageOverrides? withPackages does not use package overrides with the following overlay:
Okay, so I’ve found the problem: I’m overriding python3Packages with python311.pkgs, but the python interpreter I’m using, hy, is defined as hy = with python3Packages; toPythonApplication hy;; however, in pkgs/top-level/all-packages.nix, python3Packages is defined as python3Packages = dontRecurseIntoAttrs python310Packages;. So why isn’t python3Packages being overriden by the overlay? I fixed the problem by creating another overlay manually overriding the hy interpreter: final: prev: { hy = with final.python3.pkgs; toPythonApplication hy; };