diff options
-rw-r--r-- | modules/workstation/emacs/default.nix | 4 | ||||
-rw-r--r-- | overlays/patches/default.nix | 6 | ||||
-rw-r--r-- | overlays/patches/emacs/default.nix | 21 |
3 files changed, 5 insertions, 26 deletions
diff --git a/modules/workstation/emacs/default.nix b/modules/workstation/emacs/default.nix index 8c2015226db2..80801b420d9e 100644 --- a/modules/workstation/emacs/default.nix +++ b/modules/workstation/emacs/default.nix @@ -2,7 +2,7 @@ { environment.systemPackages = with pkgs; [ - ((emacsPackagesFor emacs-pgtk).emacsWithPackages (epkgs: with epkgs; [ + ((emacsPackagesFor emacsPgtk).emacsWithPackages (epkgs: with epkgs; [ adoc-mode cmake-mode csharp-mode @@ -30,7 +30,7 @@ users.users.qyliss.xdg.config.paths."emacs" = with pkgs; runCommandNoCC ".emacs.d" { - nativeBuildInputs = [ emacs-pgtk ]; + nativeBuildInputs = [ emacsPgtk ]; } '' cp ${./early-init.el} early-init.el cp ${./init.el} init.el diff --git a/overlays/patches/default.nix b/overlays/patches/default.nix index 23a2b465bc34..a49db0c90871 100644 --- a/overlays/patches/default.nix +++ b/overlays/patches/default.nix @@ -3,9 +3,9 @@ self: super: { dino = self.callPackage ./dino { inherit (super) dino; }; - emacs-pgtk = self.callPackage ./emacs { - emacs = self.waylandPkgs.emacs-pgtk; - }; + emacs-overlay = self.extend (import ./emacs/overlay); + + inherit (self.emacs-overlay) emacsPgtk; emacsPackagesFor = emacs: self.callPackage ./emacs/packages.nix { emacsPackages = super.emacsPackagesFor emacs; diff --git a/overlays/patches/emacs/default.nix b/overlays/patches/emacs/default.nix deleted file mode 100644 index a2bfc4bdd298..000000000000 --- a/overlays/patches/emacs/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ emacs, fetchpatch, ... } @ args: - -let - inherit (builtins) removeAttrs; -in - -(emacs.override (removeAttrs args [ "emacs" "fetchpatch" ])).overrideAttrs ( - { patches ? [], ... }: - { - patches = patches ++ [ - (fetchpatch { - url = "https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=cbfce827ace4c410a2eed50c8d8c763721925b7e"; - sha256 = "0gy5vzcrrz7bba2y6xg6v67z625v6zbsia3i3ki0nk2ksayn9h9c"; - }) - (fetchpatch { - url = "https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=13651833c73b78e509a47ab38b8c5a60134f04fc"; - sha256 = "0plk9d8n0gsi8rpqn01qkkchwzcrig2cbr1ki9zpj140r7rywa6x"; - }) - ]; - } -) |