From 5049ed06659266a4dbe3065bf7c51d874570b790 Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sun, 28 Apr 2024 16:54:00 +1000 Subject: [PATCH] Clarify Emacs version requirement And stop forcing pgtk for the example packages. --- README.md | 5 ++++- flake.nix | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d14b99a..b491001 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ Next, you have two options: # doomDir = ./path/to/doom/config; # instead. doomLocalDir = "~/.local/share/nix-doom"; + # Emacs package to build on (any Emacs >= 29 should work). + emacs = pkgs.emacs29; }) ``` @@ -98,7 +100,8 @@ welcome, as are (within reason) changes necessary to support use without flakes. - `emacs`: Emacs package to use. Defaults to `pkgs.emacs`. Must be at least Emacs 29. Use this to select different Emacs variants like - `pkgs.emacs29-pgtk`. + `pkgs.emacs29-pgtk`. Required in Nixpkgs < 24.05, where `pkgs.emacs` is Emacs + 28. - `doomSource`: Doom source tree. Defaults to a flake input: overriding that input is probably easier than passing this. diff --git a/flake.nix b/flake.nix index 3b60478..a3bfa67 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,8 @@ let common = { doomSource = doomemacs; - emacs = pkgs.emacs29-pgtk; + # TODO: drop after NixOS 24.05 release. + emacs = pkgs.emacs29; doomLocalDir = "~/.local/share/nix-doom-unstraightened"; }; pkgsWithEmacsOverlay = pkgs.extend emacs-overlay.overlays.package;