[marcus@nixos:~/Programming/Python/Morsels]$ fix-python --venv virt_env --libs .nix/libs.nix
sh: ligne 1: file : commande introuvable
sh: ligne 1: file : commande introuvable
sh: ligne 1: file : commande introuvable
Found 1 binary files
Patching file:
patchelf: getting info about ‘’: No such file or directory
patchelf: getting info about ‘’: No such file or directory
patchelf: getting info about ‘’: No such file or directory
Well, you can “just do” that I’m fine with buildFHSEnv being a better solution for you, or even in general.
What led me to not use buildFHSEnv was that it is not so accessible for less experienced NixOS users. As a new user, you started using NixOS to write foo.bar.enable = true which is great… then suddenly need to learn a whole lot about Nix to get something as simple as pip install numpy to work. My experience is that not everyone wants such headaches.
What fix-python brings IMO is: use Python on NixOS without deep diving into Nix.
I can imagine that people would then start using some other alternatives (e.g. nix-ld, buildFHSEnv) that suits their own configuration/workflow better. But now I can say to other people “you can easily use your regular Python workflow on NixOS”.
didn’t mean to impose “my way” in any manner, sorry.
I’ve myself started using nixos relatively recently and tried out some different ways of making python development environments.
When I finally discovered buildFHSEnv - it just felt like one of those “aha!” moments. It solved 2 problems straight away: using python “the usual venv way”, and isolating dev env from the rest of the system, since buildFHSEnv uses bwrap, so you can straight away unshare pid, mount and other namespaces, and bind new home so that a “bad” pip package cannot read your real home, and you yourself cannot accidently delete anything important
Nice work! I think it will come in very handy to me. Can you have both python packages from nixpkgs and regular packages installed via pip for example? Lets say I want to use the nixpkgs tensorflow and use pybullet from pip.