2023-06-11 23:09:59 +02:00
|
|
|
{ inputs, ... }:
|
|
|
|
{
|
|
|
|
flake.overlays.emacs-master-nativecomp = final: prev:
|
|
|
|
{
|
|
|
|
emacs-master-nativecomp =
|
|
|
|
let
|
2023-11-19 12:45:51 +01:00
|
|
|
emacs-master = import (inputs.nixpkgs + "/pkgs/applications/editors/emacs/make-emacs.nix") {
|
2023-06-11 23:09:59 +02:00
|
|
|
version = "30";
|
2023-07-10 23:35:56 +02:00
|
|
|
pname = "emacs-nativecomp";
|
|
|
|
variant = "nativecomp";
|
|
|
|
src = inputs.emacs;
|
|
|
|
meta = {};
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
2023-07-10 23:35:56 +02:00
|
|
|
emacs-master-package = prev.callPackage emacs-master {
|
2023-06-11 23:09:59 +02:00
|
|
|
libXaw = prev.xorg.libXaw;
|
|
|
|
gconf = null;
|
|
|
|
alsa-lib = prev.alsa-lib;
|
|
|
|
acl = prev.acl;
|
|
|
|
gpm = null;
|
|
|
|
|
|
|
|
# disable MacOS junk
|
|
|
|
AppKit = null;
|
|
|
|
Carbon = null;
|
|
|
|
Cocoa = null;
|
|
|
|
IOKit = null;
|
|
|
|
OSAKit = null;
|
|
|
|
Quartz = null;
|
|
|
|
QuartzCore = null;
|
|
|
|
WebKit = null;
|
|
|
|
ImageCaptureCore = null;
|
|
|
|
GSS = null;
|
|
|
|
ImageIO = null;
|
|
|
|
sigtool = null;
|
2023-09-28 14:42:44 +02:00
|
|
|
Accelerate = null;
|
|
|
|
UniformTypeIdentifiers = null;
|
2023-07-10 23:35:56 +02:00
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
in
|
|
|
|
emacs-master-package.override {
|
|
|
|
withSQLite3 = true;
|
2023-10-29 17:48:08 +01:00
|
|
|
withNativeCompilation = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
withWebP = true;
|
2023-06-15 16:51:45 +02:00
|
|
|
withGTK3 = true;
|
|
|
|
withImageMagick = true;
|
|
|
|
withTreeSitter = true;
|
|
|
|
withXinput2 = true;
|
|
|
|
withXwidgets = true;
|
|
|
|
withX = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|