nix-community / nix-doom-emacs

doom-emacs packaged for Nix [maintainers=@thiagokokada]
MIT License
213 stars 43 forks source link

Unable to build with emacs version > 28 #502

Closed ivandimitrov8080 closed 11 months ago

ivandimitrov8080 commented 11 months ago

This flake doesn't work for my problem as my problem is related to specifying the package to be used. If you know how to do it then give it a go.

{
  description = "Test";

  inputs = {
    nixpkgs.url = "nixpkgs/nixos-unstable";
    nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, nix-doom-emacs, flake-utils, ... }@inputs:
    flake-utils.lib.eachDefaultSystem (
      system: {
        packages.default = nix-doom-emacs.package.${system} {
          doomPrivateDir = ./doom.d;
      emacsPackage = nixpkgs.emacs29;
        };
      }
    );
}

As for the problem, this works:

  programs.doom-emacs = {
    enable = true;
    doomPrivateDir = ./doom.d;
    emacsPackage = pkgs.emacs;
  };

This does not work:

  programs.doom-emacs = {
    enable = true;
    doomPrivateDir = ./doom.d;
    emacsPackage = pkgs.emacs29;
  };

It hangs while building and it says Inhibiting (kill-emacs).

EDIT:

Running nix-shell -p emacs29 works fine.

ivandimitrov8080 commented 11 months ago

Doom emacs does not support versions higher than 29 yet.