nix-community / emacs-overlay

Bleeding edge emacs overlay [maintainer=@adisbladis]
508 stars 168 forks source link

MPS support #417

Closed walseb closed 3 months ago

walseb commented 3 months ago

Hello!

Has anyone gotten the new experimental garbage collector on the scratch/igc branch to work on NixOS?

Do you just have to change the pinned commit, or does the recipe need to be modified?

I didn't find anyone doing this when searching using the GitHub search feature.

Thanks!

adisbladis commented 3 months ago

This issue is not related to the overlay. For general Nix support there are better channels (https://nixos.org/community/).

walseb commented 3 months ago

For those interested, it can be built using this overlay like this:

  gtkEmacsMPS = emacs-overlay.emacs-git.overrideAttrs (old: {
    name = "emacs-git-mps";

    src = pkgs.fetchFromGitHub {
      owner = "emacs-mirror";
      repo = "emacs";
      rev = "42731228d24c37edb2dc848c3a74d5c932a817ef";
      sha256 = "mLTLxypbnc7UcKzRkN9tNY6/g4v+cMsTSJBUZkU/YeA=";
    };

    buildInputs = old.buildInputs ++ [ pkgs.mps ];

    configureFlags = [
      "--disable-build-details"
      "--with-modules"
      "--with-x-toolkit=gtk3"
      "--with-cairo"
      "--with-xft"
      "--with-sqlite3=yes"
      "--with-compress-install"
      "--with-toolkit-scroll-bars"
      "--with-native-compilation"
      "--without-imagemagick"
      "--with-mailutils"
      "--with-small-ja-dic"
      "--with-tree-sitter"
      "--with-xinput2"
      "--without-xwidgets" # Needed for it to compile properly for some reason
      "--with-dbus"
      "--with-selinux"
      "--with-mps=yes"
    ];
  });