/emacs

Nightly custom Emacs builds for macOS Nix environments

Primary LanguageNixMIT LicenseMIT

Nightly custom Emacs builds for macOS Nix environments

CI badge BuiltWithNix badge Cachix badge Emacs badge

This repository provides nightly automated builds of Emacs from HEAD for macOS Nix environments with the following additions:

  • Native Compilation (gccemacs)
  • X Widgets (Webkit) support
  • libvterm
  • Patched window role to work nicely with yabai
  • Patched frame to hide window decorations

Usage

To use this flake on your system, add it to your configuration inputs & overlays.
It overlays the pkgs.emacs package.
There is a complimentary binary cache available which is pushed to nightly.

{
  inputs.darwin.url = "github:lnl7/nix-darwin";
  inputs.emacs.url = "github:cmacrae/emacs";

  outputs = { self, darwin, emacs }: {
    darwinConfigurations.example = darwin.lib.darwinSystem {
      modules = [
        {
          nix.binaryCaches = [
            "https://cachix.org/api/v1/cache/emacs"
          ];

          nix.binaryCachePublicKeys = [
            "emacs.cachix.org-1:b1SMJNLY/mZF6GxQE+eDBeps7WnkT0Po55TAyzwOxTY="
          ];

          nixpkgs.overlays = [
            emacs.overlay
          ];
        }
      ];
    };
  };
}