mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
d3e46e5413
Signed-off-by: Magic_RB <magic_rb@redalder.org>
27 lines
631 B
Nix
27 lines
631 B
Nix
{ jansson, harfbuzz, glib-networking
|
|
, lib
|
|
|
|
, withPgtk ? true
|
|
, withNativeComp ? true
|
|
, name ? "emacs"
|
|
, emacsOverlay
|
|
, emacsSrc
|
|
}:
|
|
with lib;
|
|
(emacsOverlay.emacsGit.overrideAttrs
|
|
(old: {
|
|
src = emacsSrc;
|
|
buildInputs =
|
|
old.buildInputs ++ [ jansson harfbuzz.dev glib-networking ];
|
|
makeFlags = [ "NATIVE_FULL_AOT=1" ];
|
|
|
|
configureFlags =
|
|
(if withPgtk then
|
|
(remove "--with-xft" old.configureFlags)
|
|
++ singleton "--with-pgtk"
|
|
else
|
|
old.configureFlags) ++ (optional withNativeComp "--with-native-compilation");
|
|
|
|
inherit name;
|
|
})).override { nativeComp = withNativeComp; }
|