Closed Arsca closed 2 years ago
What's your Nix version? nix --version
❯ nix --version nix (Nix) 2.4
That's why; can you update your Nix to the latest released version and see if that resolves it?
Older Nix doesn't support devShells.default
etc. style of output attributes.
https://nixos.org/manual/nix/stable/release-notes/rl-2.7.html
A number of "default" flake output attributes have been renamed. These are:
defaultPackage.<system>
→ packages.<system>.default
defaultApps.<system>
→ apps.<system>.default
defaultTemplate
→ templates.default
defaultBundler.<system>
→ bundlers.<system>.default
overlay
→ overlays.default
devShell.<system>
→ devShells.<system>.default
The old flake output attributes still work, but nix flake check
will warn about them.
The README also says this (>= 2.8
):
Thanks for pinpointing the issue. Upgrading NIX per your instructions resolved it. Currently on NIX 2.10.3/NixOS 21.11
Hi,
I'm getting this error when trying to enter
nix develop
or run the sanity check per instructions: