-
Notifications
You must be signed in to change notification settings - Fork 107
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
Overlays don't seem to always be applied in the right order #318
Labels
bug
Something isn't working
Comments
As another data point I tried both using plain emacs from nixpkgs and instead using packages but still experienced the issue. It looks like those gifts both use overlays too so it's probably affected too. Staged changes (4)
new file pkgs/applications/editors/emacs/elisp-packages/apheleia/default.nix
@@ -0,0 +1,21 @@
+{ pkgs, lib, fetchFromGitHub }:
+
+pkgs.emacsPackages.trivialBuild {
+ pname = "apheleia";
+ packageRequires = [ ];
+ src = fetchFromGitHub {
+ owner = "raxod502";
+ repo = "apheleia";
+ rev = "876078f473cabd14129eb78d610ef2cc46ead4f1";
+ sha256 = "actIWr8fXYfPWRdMTmQFvn5PiJVRFIec7cwObjsn5lY=";
+ };
+
+ # INCOMPLETE
+
+ meta = with lib; {
+ description = "to do";
+ license = licenses.gpl2Plus;
+ maintainers = with maintainers; [ codygman ];
+ platforms = platforms.all;
+ };
+}
modified pkgs/default.nix
@@ -1,4 +1,5 @@
final: prev: {
northwind-sql = prev.callPackage ./development/misc/northwind-sql { };
shortuuid = prev.callPackage ./development/misc/shortuuid { };
+ apheleia-mode = prev.callPackage ./applications/editors/emacs/elisp-packages/apheleia { };
}
modified profiles/develop/emacs/config/vanilla.org
@@ -2212,24 +2212,8 @@ Perhaps even turning on code block execution for sql queries in general or those
*** TODO transparent formatting for everything
-
-#+begin_src nix :noweb-ref emacs-package-in-let :tangle no
- apheleia = emacsPackages.trivialBuild {
- pname = "apheleia";
- packageRequires = [ ];
- src = prev.fetchFromGitHub {
- owner = "raxod502";
- repo = "apheleia";
- rev = "876078f473cabd14129eb78d610ef2cc46ead4f1";
- sha256 = "actIWr8fXYfPWRdMTmQFvn5PiJVRFIec7cwObjsn5lY=";
- };
- };
-#+end_src
-
-I guess I could live without the other ones, but not having format on save like this would really be painful
-
- #+begin_src nix :noweb-ref disabled-emacs-package :tangle no
-apheleia
+#+begin_src nix :noweb-ref emacs-package :tangle no
+apheleia-mode
#+end_src
#+begin_src emacs-lisp :noweb yes
modified users/profiles/emacs/emacs-packages.nix
@@ -29,6 +29,7 @@ epkgs: with epkgs; [
lsp-mode
lsp-haskell
lsp-ui
+ apheleia-mode
restclient
ob-restclient
|
Fixed in #55. Awaiting update, closing nevertheless. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The use of the module system merge with
imports
in combination with raked overlays usually puts those imported overlays first (proof tbd!), probably because of some "recursion-first" and thereby makes the other, usually external, overlays unavailable to them.Since overlays more often than not depend on external overlays, this is mostly not intended and results in problems.
Quick workaround: don't use raked overlays, but import them each manually (in the correct order).
edited: @blaggacao
original report
I'm a little low on time, so I'm just pasting what I had from the discussion.
I'm not really sure what's going on here since I didn't change this piece. I use emacs overlay like this:
It is tracked by the way:
It's not taking effect any more and seems to not apply to any
pkgs
such as those in myusers/profiles/emacs/default.nix
:I think a while ago when I worked with @nrdxp over discord we had a similar issue where the order of overlays mattered for the emacs overlay.
So based on that hunch I'm about to try this in
flake.nix
:I have no idea if this will work, but the rationale is that maybe the pkg overlays have to happen after the emacs overlay is loaded.
Also, here is how I'm testing:
Edit: Here is some extra context that could help:
The text was updated successfully, but these errors were encountered: