Flake example on website leads to infinite recursion #63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://lix.systems/add-to-config/ gives this snippet as a "fancier alternative" to switch to Lix on NixOS:
I tried it; the result is an infinite recursion:
I have hit this issue as well, the problem is that
pkgs.lixPackageSetsis a scope created withpkgs.callPackage. It tries to set, for example,stable.nixpkgs-review = pkgs.nixpkgs-review.override { nix = stable.lix; };. With the suggested overlay,pkgs.nixpkgs-reviewispkgs.lixPackageSets.stable.nixpkgs-review, so it tries to override its own output rather than nixpkgs' default.I found an ugly workaround by adding an extra level of override: overriding arguments of
pkgs.lixPackageSetsto those of overlay'sprev, forcinglixPackageSetsto override original packages: