nix-shell -p <any-package>
seems to fail consistently with exactly this error in all cases:
─❯ nix-shell -p cowsay ─╯
error: infinite recursion encountered
at /nix/store/f9mc8nca8cw4p3jjx6gy5kdspybrfmlh-nixos-22.05.998.d17a56d90ec/nixos/lib/fixed-points.nix:69:67:
68| #
69| extends = f: rattrs: self: let super = rattrs self; in super // f self super;
| ^
70|
I mostly use the new nix commands, so this isn’t a showstopper, but it’s odd and annoying.
I also have many project-specific flake.nix
es which are automatically activated by direnv
upon cd
-ing. In some of these, the same error appears, but the environment activation seems to be working ok.
Does this ring any bells? Any hints on how to fix it?
Edit: it’s also preventing nix-index
(which I’ve never consciously used before, but which appears in some recipe I’m following) from working, with exactly the same error.