mach-nix flake is not working on my end, an infinite recursion error is being thrown:
See original GitHub issueGreetings,
I’m currently using mach-nix in a shell.nix setup, which is working great, because I can now use nix to run Python packages that I didn’t have access to before. But, for some reason the mach-nix( https://github.com/DavHau/mach-nix/blob/master/examples.md#use-mach-nix-from-a-flake ) in the examples section is not working on my end, I’m getting an infinite recursion error thrown? So, I’m just checking to see if anyone else is getting this error, if not, then that means that there’s something wrong with my config.
I’m using (direnv+nix-direnv+emacs-direnv), so getting a mach-nix flake working with this setup would be really nice.
nix-shell -p nix-info --run “nix-info -m”
- system:
"aarch64-darwin"
- host os:
Darwin 21.2.0, macOS 12.1
- multi-user?:
yes
- sandbox:
no
- version:
nix-env (Nix) 2.4
- channels(apple):
""
- channels(root):
"darwin, home-manager, nixpkgs-unstable-21.11pre311289.503209808cd, nixpkgs-21.11pre309670.253aecf69ed"
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixpkgs
nix develop
error: infinite recursion encountered
at /nix/store/vbsi61gndh5p7kc3ngwh672kl0zpv6wh-source/flake.nix:17:20:
16| pkgs = nixpkgs.legacyPackages."${system}";
17| mach-nix = mach-nix.lib."${system}";
| ^
18| in {
(use ‘–show-trace’ to show detailed location information)
Thanks in advance for the help.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
I’m glad it worked you 😃 Might be an idea but I’m not experienced enough to tell if it’s just a problem with the packages I’m trying to use or the example is really outdated.
No problem I had to fix another problem #389 but this is the working version. https://github.com/Nebucatnetzer/network_inventory/blob/dev/flake.nix