cachix / nixpkgs-python

All Python versions, kept up-to-date on hourly basis using Nix.
Apache License 2.0
176 stars 11 forks source link

#4: make sure we set correct self #5

Closed domenkozar closed 1 year ago

domenkozar commented 1 year ago

Fix #4

It still fails with:

❯ nix shell '.#"3.11"'.interpreter
error: flake output attribute 'packages.x86_64-linux.3.11.interpreter' evaluates to the string '/nix/store/9gwacwbz0vrqjsbsrnq44hvyfw8jwmzh-python3-3.11.3/bin/python3.11' which is not a store path

❯ /nix/store/9gwacwbz0vrqjsbsrnq44hvyfw8jwmzh-python3-3.11.3/bin/python3.11
Python 3.11.3 (main, Apr  4 2023, 22:36:41) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
mauricege commented 1 year ago

I do not think that this particular command would ever work. It was just a quick way to produce the path.

I actually stumbled across the issue while using devenv with languages.python.version and poetry/venv enabled. The init scripts try to use cfg.package.interpreter.