https://github.com/fiddlerwoaroof/emacs-nix-hack
Hack emacs to build on Sequoia with native-comp
https://github.com/fiddlerwoaroof/emacs-nix-hack
Last synced: 22 days ago
JSON representation
Hack emacs to build on Sequoia with native-comp
- Host: GitHub
- URL: https://github.com/fiddlerwoaroof/emacs-nix-hack
- Owner: fiddlerwoaroof
- Created: 2025-04-19T03:21:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-19T05:51:01.000Z (over 1 year ago)
- Last Synced: 2026-07-18T00:37:57.330Z (22 days ago)
- Language: Nix
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a quick hack to get emacs working on Sequoia 15.4.
This code contains the emacs patches + nix hacks to make this happen.
This depends on something like this in `~/.emacs.d/early-init.el` to
fill in some necessary paths for linking (the nix store path will be
different for you):
```lisp
(setq-default native-comp-driver-options
'("-Wl,-w"
"-Wl,-L/nix/store/zl3aslw7dhrk6wb5nv960hnc2v27l3j5-libgccjit-14-20241116/lib/gcc/aarch64-apple-darwin/14.2.1"
"-Wl,-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib"))
```
After this `nix build` and `./result/bin/emacs` should produce a
working emacs.