3 ms·
The problem of figuring out the dependencies of a package given that is was installed by an external package manager is unsolvable. For the pip example, you wou
by henrydark 4y ago
The problem of figuring out the dependencies of a package given that is was installed by an external package manager is unsolvable. For the pip example, you would have to wait for all runtime possibilities to occur to know what dynamic libraries can be loaded. It's not even clear how the main library should find these given that it probably has /usr/lib/libwhatever.so.13 hard coded inside - should nix try to intercept the syscall for this when it happens?
The way I go about this these days is to keep a nix derivation that builds a container image, and then I run pip installs freely in containers that I spin up. I use mach-nix.
If a package is deemed important, then I add it in the derivation. So there is a kind of flow from "runtime" to "build".
- amelius 4y ago> should nix try to intercept the syscall for this when it happens Yes, this is exactly how it should work, imho.