Only patch for macos and unstable over git

This commit is contained in:
larstvei 2025-08-24 16:31:04 +02:00
parent 09448b75a9
commit 1f969c1458

View File

@ -34,18 +34,22 @@
emacs-overlay.overlays.package emacs-overlay.overlays.package
]; ];
}; };
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
emacsDarwin = (pkgs.emacs-unstable).overrideAttrs (_: {
patches = [ patches = [
"${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch" "${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch"
"${emacs-plus}/patches/emacs-31/system-appearance.patch" "${emacs-plus}/patches/emacs-31/system-appearance.patch"
]; ];
}); });
emacsLinux = pkgs.emacs-unstable-pgtk;
emacsPkg = if pkgs.stdenv.isDarwin then emacsDarwin else emacsLinux;
in in
{ {
defaultPackage = pkgs.emacsWithPackagesFromUsePackage { defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
config = "${emacs-config}/init.org"; config = "${emacs-config}/init.org";
package = patched-emacs; package = emacsPkg;
defaultInitFile = true; defaultInitFile = true;
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;