From 2143986e6283433634dc0f661b665b3351b808af Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Tue, 30 May 2023 22:30:02 -0700 Subject: Clarify to-do --- overlays/emacs.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/overlays/emacs.nix b/overlays/emacs.nix index f8316d3f8427..696cb79cc5d8 100644 --- a/overlays/emacs.nix +++ b/overlays/emacs.nix @@ -89,7 +89,7 @@ let ]); emacsGit = let base = (super.lib.makeOverridable (mkGitEmacs "emacs-git" ../repos/emacs/emacs-master.json) { withSQLite3 = true; withWebP = true; }); - # TODO: remove when we drop support for < 23.05 + # TODO: remove when we drop support for < 23.05, and instead move withTreeSitter to the above line with the other arguments maybeOverridden = if super.lib.hasAttr "treeSitter" base then base.override { withTreeSitter = true; } else base; in maybeOverridden.overrideAttrs ( @@ -101,7 +101,7 @@ let ); emacsPgtk = let base = super.lib.makeOverridable (mkGitEmacs "emacs-pgtk" ../repos/emacs/emacs-master.json) { withSQLite3 = true; withWebP = true; withPgtk = true; }; - # TODO: remove when we drop support for < 23.05 + # TODO: remove when we drop support for < 23.05, and instead move withTreeSitter to the above line with the other arguments maybeOverridden = if super.lib.hasAttr "treeSitter" base then base.override { withTreeSitter = true; } else base; in maybeOverridden.overrideAttrs ( oa: { @@ -112,17 +112,17 @@ let ); emacsUnstable = let base = super.lib.makeOverridable (mkGitEmacs "emacs-unstable" ../repos/emacs/emacs-unstable.json) { withSQLite3 = true; withWebP = true; }; - # TODO: remove when we drop support for < 23.05 + # TODO: remove when we drop support for < 23.05, and instead move withTreeSitter to the above line with the other arguments maybeOverridden = if super.lib.hasAttr "treeSitter" base then base.override { withTreeSitter = true; } else base; in maybeOverridden; emacsUnstablePgtk = let base = super.lib.makeOverridable (mkGitEmacs "emacs-unstable" ../repos/emacs/emacs-unstable.json) { withSQLite3 = true; withWebP = true; withPgtk = true; }; - # TODO: remove when we drop support for < 23.05 + # TODO: remove when we drop support for < 23.05, and instead move withTreeSitter to the above line with the other arguments maybeOverridden = if super.lib.hasAttr "treeSitter" base then base.override { withTreeSitter = true; } else base; in maybeOverridden; emacsLsp = let base = super.lib.makeOverridable (mkGitEmacs "emacs-lsp" ../repos/emacs/emacs-lsp.json) { }; - # TODO: remove when we drop support for < 23.05 + # TODO: remove when we drop support for < 23.05, and instead move withTreeSitter to the above line with the other arguments maybeOverridden = if super.lib.hasAttr "treeSitter" base then base.override { withTreeSitter = false; } else base; in maybeOverridden; -- cgit 1.4.1