-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dump all reachable derivations #1187
Comments
@edolstra I remember Hydra does this, but not sure how to get the information with recent refactorings. |
For build-time graph you can get derivation paths Runtime dependencies are unknowable until you build the stuff, but you can get output paths |
Thanks for the info! Seems that |
I did come up with a new question anyway :-). It takes a while to generate this description and I would like to cache it. Can I do that with nix? (Can I use |
|
I marked this as stale due to inactivity. → More info |
I would like to make a simple tool to visualizes a set of derivations e.g. all of the ones in nixpkgs. The tool would allow searching (like nox) but also navigating through build-time and run-time dependencies (like Hydra.)
Question: How can I take a snapshot of all the necessary data such that I can import it into the tool all at once?
I see that
nox
usesnix-env -qa --json
and while this seems to contain much of what I want (list of derivations, their descriptions, some metadata) is does not seem to have everything (e.g. the dependency graph.) I have not found anything more suitable in thenix-store
manpage. I wonder if I need to be parsing the.drv
files but then the question is how to ensure that all the relevant ones exist and how to identify the subset I am interested in e.g. reachable from the result ofimport <nixpkgs>
.Tips would be welcome! (This is for the first steps of the Studio project.)
The text was updated successfully, but these errors were encountered: