-
-
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
mu: enable AOT native-comp for emacs lisp #194281
Conversation
Make sense, but any chance we can move this out into a separate hook and just call that? I’m sure there are other emacs packages that would benefit from this.
|
Good idea, I will wait for #194279 to be merged first.
Are there? To the best of my knowledge, mu is the only package. Could you list a few? |
Indeed, there are many packages like mu4e. rg emacs -t nix --glob '!pkgs/applications/editors/emacs' --glob '
!pkgs/build-support/emacs' --glob '!nixos' --glob '!test' I am working on it. |
Even our regular emacs packages (under |
They have infra for native comp since a7cb8e3, not a hook though.
Yeah, that is also a good idea. I will mark this as draft to prevent it from being merged. |
de8ce54
to
c11682b
Compare
I give up making a setup hook for native-comp because I cannot figure out how to put everything needed by native-comp into a hook, e.g. these lines. I will leave that for future contributors. I make native-comp conditionally depend on I suggest we merge this for now and transfer it to a hook when the hook is implemented. |
c11682b
to
15ebd7c
Compare
Any updates? |
Is this not already solved in a general way by the current emacs infrastructure/emacs-overlay. All my emacs packages (except |
No and emacs-overlay is not involved here.
Let me explain some details. Currently, only elisp packages, which are built using elpaBuild, melpaBuild or trivialBuild, enable AOT native-comp after my pr. This is because only these three builders run native-comp in the postInstall. As a result, mu4e does not do AOT native-comp.
Yeah, the infra of emacs needs some improvement to do it the right way. One possible way is to make native-comp a hook, as @peterhoeg says. Unfortunately, it seems few people care about native-comp in emacs. Almost all recent native-comp related prs are all from me. As I said, I tried to make native-comp a hook, but failed. I would appreciate it if someone could improve the emacs infra. mu4e is the last piece I care for native-comp, so here is this pr. |
It seems this pr does not reach the bar for maintainers to merge it and there is also nothing more I can do. Closing. |
I am truly sorry to leave you hanging like this. I absolutely think there is value in your work - I just haven't had tiem to do anything about it. |
Oh, I misunderstood. Let's reopen it and give it some more time. |
Unless emacs *absolutely requires' the elisp files, the nativeComp outputs should go in their own derivations. Lean emacs deploys. Easier to think about and modularize. Just a thought. I might implement something and will let you know if I do. |
In principle that makes sense, but is there really a usecase for emacs
without the natively compiles files?
|
Just so it doesn't get forgotten to sands of time, @peterhoeg can we do something about this? Anybody else who might be able to review if you're busy? |
My apologies. I will take the time to do what is needed during this coming week.
|
I was thinking more about emacs without the elisp files |
ping @peterhoeg ! Apologies if I'm being annoying, but I'd quite like to see this merged. If Peter is busy, can @adisbladis take a look? |
While it would indeed be better to solve in a hook or other central location it's OK to have a workaround until then. |
FYI, I made a follow-up PR to package mu4e as a separate Emacs lisp package. |
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes