DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.

Home Page:https://zero-to-nix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with page `src/pages/start/3.nix-develop.mdx`

charafau opened this issue · comments

nix develop doesn't work for rust.

pc at ~/Code/rust/hello_world ❯ nix develop
error: undefined variable 'allSystems'

       at /nix/store/ciy7k0w5ac5n5kgqq17kcc9p2ywairmr-source/flake.nix:25:47:

           24|       # Helper to provide system-specific attributes
           25|       forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
             |                                               ^
           26|         pkgs = import nixpkgs { inherit overlays system; };

@charafau My bad! Thanks for reporting. Fixed in #239.