-
Notifications
You must be signed in to change notification settings - Fork 4
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
Extract from any flake output #21
Comments
I'm not sure about the UX. Should we set the root to the flake itself and let users use the $ nixtract nixpkgs --target-attribute-path legacyPackages.x86_64-linux.python3Packages The cons I see is the need to specify the system which goes against Another option I can see is to keep the default behavior, and add a new option $ nixtract nixpkgs --all-outputs --target-attribute-path nixosConfigurations.someconfig.config.system.build.toplevel |
I'm all for increasing the flexibility of nixtract, but I think nixtract will mostly be used to access |
Agreed with @ErinvanderVeen's point. I think to make the UX a bit more pleasant we could do a bit of aliasing for the default case to keep the tool simple to use for these default workflows. |
In my opinion
I assumed an In order to faithfully mimic the nix CLI behavior it could be used the nix CLI itself with |
The Hercules CI agent actually uses this nix code to get all the outputs given a flake. I leave it here since it can be useful both if someone wants to vendor it directly in |
Is your feature request related to a problem? Please describe.
I want to get the information of my NixOS system or hydra jobs, but nixtract only extracts from the
packages
orlegacyPackages
output.Describe the solution you'd like
I'd like to be able to extract from any flake output.
Additional context
From #19
cc @aciceri
The text was updated successfully, but these errors were encountered: