-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Factor out InstallableStorePath
to its own file, dedup
#7744
Factor out InstallableStorePath
to its own file, dedup
#7744
Conversation
`nix app` had something called `InstallableDerivedPath` which is actually the same thing. We go with the later's name because it has become more correct. I originally did this change (more hurriedly) as part of NixOS#6225 --- a mini store-only Nix and a full Nix need to share this code. In the first RFC meeting for NixOS/rfcs#134 we discussed how some splitting of the massive `installables.cc` could begin prior, as that is a good thing anyways. (@edolstra's words, not mine!) This would be one such PR.
Would be helpful to have a diagram or some description of the types/sub-types involved. (doxygen?) This might be out of scope for this change, but would be helpful overall.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- strictly an improvement
- no regressions
Thank you @tomberek! Agree Doxygen would be good. I'll try to look into that this upcoming week. |
#7814 issue for API docs. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-02-10-nix-team-meeting-minutes-31/25438/1 |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-team-report-2022-10-2023-03/27486/1 |
Motivation
nix app
had something calledInstallableDerivedPath
which is actually the same thing. We go with the later's name because it has become more correct.Context
I originally did this change (more hurriedly) as part of #6225 --- a mini store-only Nix and a full Nix need to share this code. In the first RFC meeting for NixOS/rfcs#134 we discussed how some splitting of the massive
installables.cc
could begin prior, as that is a good thing anyways. (@edolstra's words, not mine!) This would be one such PR.Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*