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
notmuch: add separate emacs
output
#84663
Conversation
This puts all emacs-related binaries and code to a separate output, removing emacs from the runtime closure of neomutt.
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 tested the build of it and nix-store -q --references $(nix-build -A notmuch)
doesn't mention emacs. Great!
Do you know @flokli why it works? This kind of issues have been bothering me since my early days in NixOS so I'm very curios.
So, there's some documentation in I think in your previous iteration, the code moving manpages etc. was triggering a bug in By moving things into the |
TBH @flokli I don't care enough in order to narrow it down, sorry :/. You can trigger the bug yourself by taking the derivation as in |
Yeah, I think we should move the discussion into that discourse post :-) |
This breaks emacs-notmuch (surprise!) :/ opinions on adding a release notes entry? |
🙈 sorry, missed that |
Motivation for this change
Emacs takes around 150Mb in closure size.
neomutt
is a package which uses notmuch as a library and users that don't use Emacs don't need this feature enabled. Hence to reduce closure size, while still supporting Emacs users of notmuch the emacs-related binary and emacs lisp files were moved to anotmuch.emacs
output.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Supersedes #84610.