If you pin a language package with languages.elixir.package = pkgs.elixir_1_14 and enable a pre-commit hook that uses a different version of the same package, which package you get in the shell might not be what you expect.
It looks like the newly added enabledPackages in pre-commit can override the pinned language packages.
Users may be caught off-guard by this.
Describe the bug
If you pin a language package with
languages.elixir.package = pkgs.elixir_1_14
and enable a pre-commit hook that uses a different version of the same package, which package you get in the shell might not be what you expect.It looks like the newly added
enabledPackages
in pre-commit can override the pinned language packages. Users may be caught off-guard by this.See https://discord.com/channels/1036369714731036712/1147538583134158953/1225807821334122527
To reproduce
Result:
Expected:
Version
v1.0.2 >=