From 1f969c1458b95c4b8d5df0a691a2e8ae4932d52c Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 24 Aug 2025 16:31:04 +0200 Subject: [PATCH] Only patch for macos and unstable over git --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 36ee3e0..6e41b25 100644 --- a/flake.nix +++ b/flake.nix @@ -34,18 +34,22 @@ emacs-overlay.overlays.package ]; }; - patched-emacs = (pkgs.emacs-git).overrideAttrs (o: { + + emacsDarwin = (pkgs.emacs-unstable).overrideAttrs (_: { patches = [ "${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch" "${emacs-plus}/patches/emacs-31/system-appearance.patch" ]; }); + emacsLinux = pkgs.emacs-unstable-pgtk; + + emacsPkg = if pkgs.stdenv.isDarwin then emacsDarwin else emacsLinux; in { defaultPackage = pkgs.emacsWithPackagesFromUsePackage { config = "${emacs-config}/init.org"; - package = patched-emacs; + package = emacsPkg; defaultInitFile = true; alwaysEnsure = true; alwaysTangle = true;