Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index also stable nixpkgs, or document in README that the index is for unstable #118

Closed
sliedes opened this issue Jul 17, 2024 · 0 comments · Fixed by #120
Closed

Index also stable nixpkgs, or document in README that the index is for unstable #118

sliedes opened this issue Jul 17, 2024 · 0 comments · Fixed by #120

Comments

@sliedes
Copy link

sliedes commented Jul 17, 2024

Problem

My analysis here might be wrong, but I think this is what is happening:

  • I'm running nixos-24.05
  • I added the nix-index-database flake and set programs.nix-index-database.comma.enable = true

Now there are some failure cases:

[sliedes@poyta:~]$ , python3.12
error: unable to execute 'python3.12': No such file or directory

[sliedes@poyta:~]$ , -p python3.12
Package that contains executable /bin/python3.12: python3
error: unable to execute 'python3.12': No such file or directory

[sliedes@poyta:~]$ , python3
Python 3.11.9 (main, Apr  2 2024, 08:25:04) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

I believe the issue here is that in nixpkgs unstable, the package python3 contains Python 3.12, so the python3.12 binary is there; however, in stable, python3 is still Python 3.11.

Suggestions

While it would be nice to index and handle stable too, I think a minimal improvement would be to add a note about this in the README so people know what to expect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant