emacs icon indicating copy to clipboard operation
emacs copied to clipboard

Nightly custom Emacs builds for macOS Nix environments

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:

Recent Changes

The no-titlebar frame patch has been removed, as it can be implemented with pure Emacs Lisp by putting the following early on during initialization (e.g. in early-init.el):

(add-to-list 'default-frame-alist '(undecorated . t))

See https://github.com/d12frosted/homebrew-emacs-plus/issues/433#issuecomment-1025547880 for further background.

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
          ];
        }
      ];
    };
  };
}