cript0nauta / pynixify

Nix expression generator for Python projects
GNU General Public License v3.0
66 stars 11 forks source link

Project installation/setup overview #39

Closed InLaw closed 4 years ago

InLaw commented 4 years ago

is there a way to show/ inspect the whole installed setup/packages with versions (and hashes) regrading

cript0nauta commented 4 years ago

Yes there is a way, this feature is provided by Nix itself. You can query the closure of an output, i.e. the list of all transitive dependencies. If you're using the pynixify/shell.nix file, you can do something like this:

$ nix-store -qR $(nix-build pynixify/shell.nix -A buildInputs)

This will first build the python environment with all the specified dependencies, and then it wil print the contents of the whole closure. Does this answer your question?

InLaw commented 4 years ago

nix-tree

(ok for now)

cript0nauta commented 4 years ago

I didn't know about nix-tree, it looks great! :smile: