Closed adminy closed 8 months ago
Running pip install requests
in a Nix derivation is not recommended because it is not reproducible. To avoid reproducibility issues, by default, Nix is able to disable network accesses during derivation build. (in some specific cases, network accesses are allowed, see "fixed output derivation" for instance.)
Instead of using pip, you should use something such as python.withPackage
or poetry2nix for more complex use cases.
I close the issue because it is not a nix2container issue (but a Nix feature). (Of course, we can continue to discuss in this issue.)
flake.nix
gives the following error:
given that there is no such commands such as
runAsRoot
and I don't know how else I'm going to have an image with pre-prepared dependencies installed ... how is one supposed to install a shell in this image with precached dependencies for projects?