!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

207 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs44 Servers

Load older messages


SenderMessageTime
16 Mar 2023
@philipp:xndr.dephilipp joined the room.17:27:04
20 Mar 2023
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk joined the room.09:37:28
21 Mar 2023
@felixfahrbahn:matrix.orgfelixfahrbahn joined the room.00:09:23
@geordieshaun:matrix.orggeordieshaun joined the room.18:19:11
@spherinder:matrix.org@spherinder:matrix.org joined the room.18:45:04
22 Mar 2023
@asbjorn:olli.ng@asbjorn:olli.ng joined the room.13:00:52
@asbjorn:olli.ng@asbjorn:olli.ng

Heya all 👋 Emacs noob here with a question 😅

I'm trying to install a package from MELPA, by adding a (package! <packagename>) line to my packages.el file.
When I nixos-rebuild switch, it fails with error Package not available: <packagename>

13:08:21
@asbjorn:olli.ng@asbjorn:olli.ng using package! in packages.el has worked for me in the past, and I have verified that the package I want does exist in MELPA under that name, by searching melpa.org 13:09:01
@asbjorn:olli.ng@asbjorn:olli.ng * Using package! in packages.el has worked for me in the past, and I have verified that the package I want does exist in MELPA under that name, by searching melpa.org 13:09:10
@asbjorn:olli.ng@asbjorn:olli.ng It's a relatively new package, so I guess it could be related to this issue of MELPA repos not updating properly 13:10:07
@asbjorn:olli.ng@asbjorn:olli.ng

hlissner even suggests a workaround:

# Update MELPA
cd ~/.emacs.d/.local/straight/repos/melpa
git pull

# Clear straight's cache
rm -f ~/.emacs.d/.local/straight/build-cache.el
doom sync

But since I've set up doom through nixos (presumably), ~/.emacs.d/ is empty.

13:11:43
@asbjorn:olli.ng@asbjorn:olli.ngTL;DR does anyone know how to update the MELPA repository indexes manually on NixOS?13:16:31
23 Mar 2023
@ckie:ckie.devmei 🌒& changed their display name from ckie (they/them; heavily limited keyboard usage, dictation or voice only) to ckie (they/them; limited keyboard usage, voice preferred).02:04:02
@k0kada:matrix.orgk0kada (he/him)
In reply to @asbjorn:olli.ng
TL;DR
does anyone know how to update the MELPA repository indexes manually on NixOS?
It does by emacs-community repository
14:36:03
@k0kada:matrix.orgk0kada (he/him)If this package is not there it is not going to be found14:36:12
@asbjorn:olli.ng@asbjorn:olli.ngDo you know how I can check this?14:36:34
@k0kada:matrix.orgk0kada (he/him)https://github.com/nix-community/emacs-overlay14:36:35
@asbjorn:olli.ng@asbjorn:olli.ng How do I check whether a package is supported by emacs-overlay?
The README says "Daily generations of Melpa & Melpa stable attribute sets." This makes me think that any more-than-a-day-old packages should be in there? 🤔
14:39:53
@paultrial:banditlair.compaultrial

You can add a package manually if it is missing, for instance I have:

      programs.doom-emacs = {
        enable = true;
        doomPrivateDir = ./doom.d;
        emacsPackagesOverlay = final: prev: {
          ob-ammonite = with final;
            (trivialBuild {
              src = pkgs.fetchFromGitHub {
                owner = "zwild";
                repo = "ob-ammonite";
                rev = "39937dff395e70aff76a4224fa49cf2ec6c57cca";
                sha256 = pkgs.lib.fakeSha256;
              };
              pname = "ob-ammonite";
              packageRequires = [ s dash editorconfig ];
            });
        };
      };
16:03:24
@asbjorn:olli.ng@asbjorn:olli.ngNice, thanks a lot! I'll try this later16:04:54
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk left the room.16:07:23
25 Mar 2023
@worldofgeese:one.ems.host@worldofgeese:one.ems.host joined the room.23:03:41
@worldofgeese:one.ems.host@worldofgeese:one.ems.hostI'm attempting a first build and I receive a `inhibiting (kill-emacs)`. I left it for 6 hours and just came home to the same message.23:04:49
26 Mar 2023
@asbjorn:olli.ng@asbjorn:olli.ngThis was really helpful, after some more messing around with it for a bit, I got the plugin to work! Thanks a lot 🫂22:10:51
@kj4ohh:matrix.org@kj4ohh:matrix.org joined the room.22:39:28
@kj4ohh:matrix.org@kj4ohh:matrix.orgHello, I've gotten nix-doom-emacs setup a few days ago, but today I added the emacs daemon in my home.nix (services.emacs.enable = true;)22:40:51
@kj4ohh:matrix.org@kj4ohh:matrix.orgNow when I choose Emacs (client) it won't come up like it did22:41:09
@kj4ohh:matrix.org@kj4ohh:matrix.orgWhen I try emacsclient -c on the command line, it says i can't open Display :1 but it should be :022:41:28
@kj4ohh:matrix.org@kj4ohh:matrix.orgIs there something wrong in my config?22:41:36
@kj4ohh:matrix.org@kj4ohh:matrix.orgWell, I just did an echo $DISPLAY and it did return :123:02:33

Show newer messages


Back to Room ListRoom Version: 9