···3, variant
4, src
5, patches ? _: [ ]
06}:
78{ lib
···391 treeSitter = builtins.trace "emacs.passthru: treeSitter was renamed to withTreeSitter and will be removed in 23.11" withTreeSitter;
392 };
393394- meta = {
395- homepage = if variant == "macport"
396- then "https://bitbucket.org/mituharu/emacs-mac/"
397- else "https://www.gnu.org/software/emacs/";
398- description = "The extensible, customizable GNU text editor"
399- + lib.optionalString (variant == "macport") " - with macport patches";
400- longDescription = ''
401- GNU Emacs is an extensible, customizable text editor—and more. At its
402- core is an interpreter for Emacs Lisp, a dialect of the Lisp programming
403- language with extensions to support text editing.
404-405- The features of GNU Emacs include: content-sensitive editing modes,
406- including syntax coloring, for a wide variety of file types including
407- plain text, source code, and HTML; complete built-in documentation,
408- including a tutorial for new users; full Unicode support for nearly all
409- human languages and their scripts; highly customizable, using Emacs Lisp
410- code or a graphical interface; a large number of extensions that add other
411- functionality, including a project planner, mail and news reader, debugger
412- interface, calendar, and more. Many of these extensions are distributed
413- with GNU Emacs; others are available separately.
414- ''
415- + lib.optionalString (variant == "macport") ''
416-417- This release is built from Mitsuharu Yamamoto's patched, MacOS X-specific
418- source code.
419- '';
420- license = lib.licenses.gpl3Plus;
421- maintainers = with lib.maintainers; [
422- AndersonTorres
423- adisbladis
424- atemu
425- jwiegley
426- lovek323
427- matthewbauer
428- ];
429- platforms = if variant == "macport"
430- then lib.platforms.darwin
431- else lib.platforms.all;
432 broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
433 };
434}))
···3, variant
4, src
5, patches ? _: [ ]
6+, meta
7}:
89{ lib
···392 treeSitter = builtins.trace "emacs.passthru: treeSitter was renamed to withTreeSitter and will be removed in 23.11" withTreeSitter;
393 };
394395+ meta = meta // {
0000000000000000000000000000000000000396 broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);
397 };
398}))
···3, fetchFromSavannah
4}:
56+let
7+ mainlineMeta = {
8+ homepage = "https://www.gnu.org/software/emacs/";
9+ description = "The extensible, customizable GNU text editor";
10+ longDescription = ''
11+ GNU Emacs is an extensible, customizable text editor—and more. At its core
12+ is an interpreter for Emacs Lisp, a dialect of the Lisp programming
13+ language with extensions to support text editing.
14+15+ The features of GNU Emacs include: content-sensitive editing modes,
16+ including syntax coloring, for a wide variety of file types including
17+ plain text, source code, and HTML; complete built-in documentation,
18+ including a tutorial for new users; full Unicode support for nearly all
19+ human languages and their scripts; highly customizable, using Emacs Lisp
20+ code or a graphical interface; a large number of extensions that add other
21+ functionality, including a project planner, mail and news reader, debugger
22+ interface, calendar, and more. Many of these extensions are distributed
23+ with GNU Emacs; others are available separately.
24+ '';
25+ license = lib.licenses.gpl3Plus;
26+ maintainers = with lib.maintainers; [
27+ AndersonTorres
28+ adisbladis
29+ atemu
30+ jwiegley
31+ lovek323
32+ matthewbauer
33+ ];
34+ platforms = lib.platforms.all;
35+ };
36+in
37{
38 emacs28 = import ./generic.nix {
39 pname = "emacs";
···44 rev = "28.2";
45 hash = "sha256-4oSLcUDR0MOEt53QOiZSVU8kPJ67GwugmBxdX3F15Ag=";
46 };
47+48+ meta = mainlineMeta;
49 };
5051 emacs29 = import ./generic.nix {
···57 rev = "29.0.92";
58 hash = "sha256-Vkry+2zYejZVwZKQlmQiAJnbjsj87DiIZ1ungooYd8A=";
59 };
60+61+ meta = mainlineMeta;
62 };
6364 emacs-macport = import ./generic.nix {
···70 repo = "emacs-mac";
71 rev = "emacs-28.2-mac-9.1";
72 hash = "sha256-Ne2jQ2nVLNiQmnkkOXVc5AkLVkTpm8pFC7VNY2gQjPE=";
73+ };
74+75+ meta = {
76+ homepage = "https://bitbucket.org/mituharu/emacs-mac/";
77+ description = mainlineMeta.description + " - with macport patches";
78+ longDescription = mainlineMeta.longDescription + ''
79+80+ This release is built from Mitsuharu Yamamoto's patched source code
81+ tailoired for MacOS X.
82+ '';
83+ inherit (mainlineMeta) license maintainers;
84+ platforms = lib.platforms.darwin;
85 };
86 };
87}