Hello,
Suppose that some package is defined in nixpkgs’ top-level/all-packages.nix
as follows:
{
something = python312Packages.callPackage ../something.nix { };
}
Is there a way for the end-user to override the version of the Python interpreter and whole Python package scope used when calling that specific package?
For example, for using Python version 3.11 instead of 3.12,
I’m looking for the same effects as replacing that line with:
{
something = python311Packages.callPackage ../something.nix { };
}
but without forking nixpkgs.
I tried with:
(pkgs.something.override pkgs.python311Packages)
but this results in:
error: function 'anonymous lambda' called with unexpected argument 'args