Skip to content
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

display attr-path only when queried available #3380

Merged
merged 1 commit into from Mar 13, 2020

Conversation

contrun
Copy link
Contributor

@contrun contrun commented Mar 1, 2020

Currently the option --attr-path is not relevant when queried with --installed. We have no way to know what the original attribute path is. This pull request remove the display of the misleading attr-path obtained from manifest.nix.

Closes #3288

@edolstra
Copy link
Member

It's probably better to throw an error if -P is used with -q.

@contrun
Copy link
Contributor Author

contrun commented Mar 13, 2020

Thanks. I've updated the commit to throw an error.

@edolstra edolstra merged commit 779ef8f into NixOS:master Mar 13, 2020
@contrun contrun deleted the no-attr-path-for-installed branch March 13, 2020 23:56
@rben01
Copy link

rben01 commented Feb 22, 2021

Is it possible to get the attribute path that generated an installed package? E.g., python3-3.8.7nixpkgs.python38Full

@contrun
Copy link
Contributor Author

contrun commented Feb 23, 2021

It would be a huge improvement in usability, but I don't think this information is stored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nix-env --query --attr-path shows unrelated number instead of attribute path
3 participants