emacsPackages.lspce: make users be able to override it#329709
emacsPackages.lspce: make users be able to override it#329709jian-lin wants to merge 1 commit intoNixOS:masterfrom
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 = relaxedsandbox = truenix-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.