lol

Merge pull request #242001 from atorres1985-contrib/emacs

emacs: factor meta

authored by

adisbladis and committed by
GitHub
1a238422 906b35cf

+49 -38
+2 -38
pkgs/applications/editors/emacs/generic.nix
··· 3 3 , variant 4 4 , src 5 5 , patches ? _: [ ] 6 + , meta 6 7 }: 7 8 8 9 { lib ··· 391 392 treeSitter = builtins.trace "emacs.passthru: treeSitter was renamed to withTreeSitter and will be removed in 23.11" withTreeSitter; 392 393 }; 393 394 394 - 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; 395 + meta = meta // { 432 396 broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform); 433 397 }; 434 398 }))
+47
pkgs/applications/editors/emacs/sources.nix
··· 3 3 , fetchFromSavannah 4 4 }: 5 5 6 + 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 6 37 { 7 38 emacs28 = import ./generic.nix { 8 39 pname = "emacs"; ··· 13 44 rev = "28.2"; 14 45 hash = "sha256-4oSLcUDR0MOEt53QOiZSVU8kPJ67GwugmBxdX3F15Ag="; 15 46 }; 47 + 48 + meta = mainlineMeta; 16 49 }; 17 50 18 51 emacs29 = import ./generic.nix { ··· 24 57 rev = "29.0.92"; 25 58 hash = "sha256-Vkry+2zYejZVwZKQlmQiAJnbjsj87DiIZ1ungooYd8A="; 26 59 }; 60 + 61 + meta = mainlineMeta; 27 62 }; 28 63 29 64 emacs-macport = import ./generic.nix { ··· 35 70 repo = "emacs-mac"; 36 71 rev = "emacs-28.2-mac-9.1"; 37 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; 38 85 }; 39 86 }; 40 87 }