-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
emacsPackages.lspce: make users be able to override it #329709
base: master
Are you sure you want to change the base?
Conversation
Without this patch, users cannot bump lspce locally because they cannot override it. With this patch applied, they can use the following code snippet to do so. ```nix let epkgs = pkgs.emacs.pkgs; lspce-module = epkgs.lspce.lspce-module.overrideAttrs (old: { ... }); in (epkgs.lspce.override { inherit lspce-module; }).overrideAttrs (old: { inherit (lspce-module) version src; # optional passthru = old.passthru // { inherit lspce-module; }; }) ``` This patch does not change the outPath of lspce.
After skimming through most of the context I find from links of the PRs you provide, I think that issue is not relevant here. The issue mentioned in those PRs is that default values of arguments can be changed by By "top-level it", I assume you mean moving
I do not think this PR is like topleveling However, I do agree that After that, we can override pkgs.emacs.pkgs.lspce.overrideAttrs (old: {
lspce-module = old.lspce-module.overrideAttrs (old': {
version = ...;
src = ...;
});
}) |
Well, thinking a little bit more, the override that I cited as a bug in the links above is indeed an expected outcome here. E.g.: if I create a custom overlay that overrides GCC, say Nonetheless, I think this code is similar in purpose to my old proposal: the lspce-elisp code now has lspce-module as an explicit input. Since the idea is to allow the override of
Regardless what I said before, this will be nice! |
Without this patch, users cannot bump lspce locally because they cannot override it. With this patch applied, they can use the following code snippet to do so.
This patch does not change the outPath of lspce.
Description of changes
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.