mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
11fc09120b
Signed-off-by: Magic_RB <magic_rb@redalder.org>
26 lines
570 B
Nix
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; }
|