dotfiles/nix/overlays/emacs/emacs-base.nix
Magic_RB 11fc09120b
Switch old halfFlake system to regular overlays
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-04-09 00:35:36 +02:00

26 lines
570 B
Nix

{ jansson, harfbuzz, glib-networking
, lib
, withPgtk ? true
, withNativeComp ? true
, name ? "emacs"
, emacsOverlay
, emacsSrc
}:
(emacsOverlay.emacsGit.overrideAttrs
(old: {
src = emacsSrc;
buildInputs =
old.buildInputs ++ [ jansson harfbuzz.dev glib-networking ];
makeFlags = [ "NATIVE_FULL_AOT=1" ];
configureFlags =
if withPgtk then
(lib.remove "--with-xft" old.configureFlags)
++ lib.singleton "--with-pgtk"
else
old.configureFlags;
inherit name;
})).override { nativeComp = withNativeComp; }