-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
emacs: migrate pkgs/build-support/emacs to pkgs/applications/editors/… #315949
emacs: migrate pkgs/build-support/emacs to pkgs/applications/editors/… #315949
Conversation
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.
What is the motivation?
I think pkgs/build-support/emacs
is pretty clear. In addition, renaming files makes it harder to use git blame
.
And moving files (without editing them) don't affect the blame mechanics. |
What else prevent Emacs from migrating to by-name if this PR is merged?
Good to know that. TIL: |
The most obvious is the use of The second, and conceptually most complicated to deal with, is the use of This is a similar situation to some other package sets like the multiple versions of |
I am slightly against this PR because
|
Almost 500 files inside less than 200 directories? It looks like a mess if you ask me. Further,
Further
Further
The organization provided by this provides a way bigger benefit, I would say, given what I wrote above. |
I am convinced by you. One way to avoid conflict with changes targeting the staging branch is to wait for another staging cycle before merging this PR. It is OK for you?
I do not follow. That massive rebuild is caused by the changed attributes, such as |
Yes, it is OK to me.
I was not talking about the migration, apologies for not being clear. I was saying that this mass-rebuild is very localized: while a modification at (say) meson setup hook propagates over all Nixpkgs, the modification above affects only the Elisp ecosystem. |
Hi, since the staging-next branch is just merged, it's time to do the last rebase! |
…d-support As a consequence of restrictions imposed by RFC 140 - Simple Package Paths [1] -, files related to a package should be confined on the package directory. Certainly this restriction does not apply to packages outside by-name hierarchy. Nonetheless, this is an interesting organization heuristics: things that affect Emacs should be confined inside Emacs directory. Besides a future migration, the "debuggability" of a framework is way more enhanced when we know how to find all its files. A similar task was done before, when RFC 140 was not a thging yet - namely, the migration of emacs-modes to elisp-packages [2]. [1] NixOS/rfcs#140 [2] #123859
Because the directories were moved.
Done! |
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.
I try to eval some related packages and find no issue.
Answering myself, this example is outdated - and it can be a good news! |
Waiting #316726
https://nixpk.gs/pr-tracker.html?pr=316726
Description of changes
As a consequence of restrictions imposed by RFC 140 - Simple Package Paths -,
files related to a package should be confined on the package directory.
Certainly this restriction does not apply to packages outside by-name hierarchy.
Nonetheless, this is an interesting organization heuristics: things that affect
Emacs should be confined inside Emacs directory.
Indeed a similar task was done before - namely, the migration of emacs-modes to
elisp-packages: #123859
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.