Open samuela opened 4 years ago
I encountered the same problem, and thought I could solve it by just:
pip install -r ${./requirements.txt}
so as to have the requirements.txt
path be resolved w.r.t. where the file originally lives.
However, I am still encoutering lorri issues with this:
Actually, it works with an empty requirements file.
What fails is when the derivation attempts to do impure things, like git clone
-ing a repository, or reaching out to the Python package server.
I'm not sure I understand how this is not a problem for the nix-shell
invocation, and how it differs from what lorri attempts when building the derivation.
Describe the bug I have a
shell.nix
file based on section 15.17.3.6 of https://nixos.org/nixpkgs/manual/. It works as expected with nix-shell, but lorri fails to build it.To Reproduce
But lorri fails because it says it can't find
requirements.txt
:Expected behavior Lorri to successfully build and activate the environment.
Metadata
Additional context
n/a