@@ -1,91 +0,0 @@
1−{ stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls, gettext
2−, AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit
3−, autoconf, automake
4−, ImageCaptureCore, GSS, ImageIO # These may be optional
5−}:
6−
7−stdenv.mkDerivation rec {
8− emacsName = "emacs-24.5";
9− name = "${emacsName}-mac-5.15";
10−
11− builder = ./builder.sh;
12−
13− src = fetchurl {
14− url = "mirror://gnu/emacs/${emacsName}.tar.xz";
15− sha256 = "0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx";
16− };
17−
18− macportSrc = fetchurl {
19− url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${name}.tar.gz";
20− sha256 = "1r47bm1pf5av2yr37byz91y7bp6vdw9smahiy18g5qp4jp6mz193";
21− };
22−
23− enableParallelBuilding = true;
24−
25− buildInputs = [ ncurses libxml2 gnutls pkgconfig texinfo gettext autoconf automake ];
26−
27− propagatedBuildInputs = [
28− AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
29− ImageCaptureCore GSS ImageIO # may be optional
30− ];
31−
32− postUnpack = ''
33− mv $emacsName $name
34− tar xzf $macportSrc
35− mv $name $emacsName
36− '';
37−
38− postPatch = ''
39− patch -p1 < patch-mac
40− sed -i 's|/usr/share/locale|${gettext}/share/locale|g' lisp/international/mule-cmds.el
41− '';
42−
43− configureFlags = [
44− "LDFLAGS=-L${ncurses.out}/lib"
45− "--with-xml2=yes"
46− "--with-gnutls=yes"
47− "--with-mac"
48− "--enable-mac-app=$$out/Applications"
49− ];
50−
51− CFLAGS = "-O3 -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1090";
52− LDFLAGS = "-O3 -L${ncurses.out}/lib";
53−
54− postInstall = ''
55− mkdir -p $out/share/emacs/site-lisp/
56− cp ${./site-start.el} $out/share/emacs/site-lisp/site-start.el
57− '';
58−
59− doCheck = true;
60−
61− meta = with stdenv.lib; {
62− description = "GNU Emacs 24, the extensible, customizable text editor";
63− homepage = http://www.gnu.org/software/emacs/;
64− license = licenses.gpl3Plus;
65− maintainers = with maintainers; [ jwiegley ];
66− platforms = platforms.darwin;
67−
68− longDescription = ''
69− GNU Emacs is an extensible, customizable text editor—and more. At its
70− core is an interpreter for Emacs Lisp, a dialect of the Lisp
71− programming language with extensions to support text editing.
72−
73− The features of GNU Emacs include: content-sensitive editing modes,
74− including syntax coloring, for a wide variety of file types including
75− plain text, source code, and HTML; complete built-in documentation,
76− including a tutorial for new users; full Unicode support for nearly all
77− human languages and their scripts; highly customizable, using Emacs
78− Lisp code or a graphical interface; a large number of extensions that
79− add other functionality, including a project planner, mail and news
80− reader, debugger interface, calendar, and more. Many of these
81− extensions are distributed with GNU Emacs; others are available
82− separately.
83−
84− This is "Mac port" addition to GNU Emacs 24. This provides a native
85− GUI support for Mac OS X 10.4 - 10.11. Note that Emacs 23 and later
86− already contain the official GUI support via the NS (Cocoa) port for
87− Mac OS X 10.4 and later. So if it is good enough for you, then you
88− don't need to try this.
89− '';
90− };
91−}