-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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: Make the application bundle name configurable #71459
Conversation
@@ -33,6 +33,7 @@ stdenv.mkDerivation rec { | |||
name = "emacs-${version}${versionModifier}"; | |||
version = "26.3"; | |||
versionModifier = ""; | |||
appName = "Emacs"; # used by Darwin systems in emacs/wrapper.nix |
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.
Wouldn't it be better to accept this as an argument to the function that returns the derivation and stick the attribute in passthru
?
That way changing the appName
would not cause a rebuild of emacs but just the wrapper.
Ping @jwiegley |
@adisbladis I don't know enough to answer that, actually. Would you be up for modifying this PR? |
@jwiegley I rebased this PR and implemented my suggestion in https://github.com/adisbladis/nixpkgs/tree/emacs-app-bundle. With my change If this works feel free to squash my commit with yours. I also made a minor change renaming |
@adisbladis No, this did not work for me, since I wasn't able to figure out how to adapt my configuration of Emacs to your solution. It claimed that https://github.com/jwiegley/nix-config/blob/master/overlays/10-emacs.nix#L1139 |
Motivation for this change
Up until a few months ago, it was possible to install Emacs under multiple application names while using
emacsPackagesFor
, because the code that's now inwrapper.nix
used to be in a derivation where it could be overridden. The new mechanism does not allow overriding, which broke the scheme I use for separate Emacs and ERC as two different applications (and thus separately customizable in various ways).This apparently happened due to #22893.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @ @matthewbauer