Skip to content

noobie needs some sanity checking with nix shell vs nix-shell #134

Open
@dfischer

Description

@dfischer

It appears my nix shell doesn't work but nix-shell does, and it feels like I broke something but I am not sure what I did or how.

nix-shell -p python310
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
this path will be fetched (18.27 MiB download, 79.44 MiB unpacked):
  /nix/store/63w3v071x6cpzpkf4yd6rvqf9y5rlv2m-python3-3.10.16
copying path '/nix/store/63w3v071x6cpzpkf4yd6rvqf9y5rlv2m-python3-3.10.16' from 'https://cache.nixos.org'...

[nix-shell:~/.local]$ which python
/nix/store/63w3v071x6cpzpkf4yd6rvqf9y5rlv2m-python3-3.10.16/bin/python

[nix-shell:~/.local]$ exit
exit

~/.local 10s ❯ nix shell -p python310
error: unrecognised flag '-p'
Try 'nix --help' for more information.

~/.local ❯ nix shell python310
error: cannot find flake 'flake:python310' in the flake registries

~/.local ❯ nix shell nixpkgs#python310

~/.local ❯ nixnix shell nixpkgs#hello

~/.local ❯ nix shell nixpkgs#hello

So I am expecting a shell with nix shell but there isn't one. Plus I have some weird errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions