git.iko.soy/typeable/nixpkgs
on master help sign in
emacs-25-macport: init at 25.1-mac-6.0 (#18363)
commit937b56f5db384b8e9edee3f4d9db98980db65384 authorPeriklis Tsirakidis <periklis.tsirakidis@mayflower.de> dateWed 21 Sep 2016, 22:19 (10 years ago) parent61195db
2 files changed+101−3
pkgs/applications/editors/emacs/macport-25.1.nix+91 pkgs/top-level/all-packages.nix+10−3
pkgs/applications/editors/emacs/macport-25.1.nixnew file+91
@@ -0,0 +1,91 @@
1+{ stdenv, fetchurl, ncurses, pkgconfig, texinfo, libxml2, gnutls, gettext, autoconf, automake
2+, AppKit, Carbon, Cocoa, IOKit, OSAKit, Quartz, QuartzCore, WebKit
3+, ImageCaptureCore, GSS, ImageIO # These may be optional
4+}:
5+
6+stdenv.mkDerivation rec {
7+ emacsName = "emacs-25.1";
8+ name = "${emacsName}-mac-6.0";
9+
10+ builder = ./builder.sh;
11+
12+ src = fetchurl {
13+ url = "ftp://ftp.gnu.org/gnu/emacs/${emacsName}.tar.xz";
14+ sha256 = "19f2798ee3bc26c95dca3303e7ab141e7ad65d6ea2b6945eeba4dbea7df48f33";
15+ };
16+
17+ macportSrc = fetchurl {
18+ url = "ftp://ftp.math.s.chiba-u.ac.jp/emacs/${name}.tar.gz";
19+ sha256 = "2f7a3fd826e6dea541ada04f4a1ff2903a87a1f736b89c5b90bf7bb820568e34";
20+ };
21+
22+ enableParallelBuilding = true;
23+
24+ buildInputs = [ ncurses libxml2 gnutls pkgconfig texinfo gettext autoconf automake];
25+
26+ propagatedBuildInputs = [
27+ AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
28+ ImageCaptureCore GSS ImageIO # may be optional
29+ ];
30+
31+ postUnpack = ''
32+ mv $sourceRoot $name
33+ tar xzf $macportSrc
34+ mv $name $sourceRoot
35+ '';
36+
37+ postPatch = ''
38+ patch -p1 < patch-mac
39+ substituteInPlace lisp/international/mule-cmds.el \
40+ --replace /usr/share/locale ${gettext}/share/locale
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";
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 25, 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+}
pkgs/top-level/all-packages.nix+10−3
@@ -7294,8 +7294,8 @@ in
72947294 x265 = if stdenv.isDarwin then null else x265;
72957295 xavs = if stdenv.isDarwin then null else xavs;
72967296 inherit (darwin) CF;
7297− inherit (darwin.apple_sdk.frameworks)
7298− Cocoa CoreServices CoreAudio AVFoundation MediaToolbox
7297+ inherit (darwin.apple_sdk.frameworks)
7298+ Cocoa CoreServices CoreAudio AVFoundation MediaToolbox
72997299 VideoDecodeAcceleration;
73007300 };
73017301
@@ -7955,7 +7955,7 @@ in
79557955 libcaca = callPackage ../development/libraries/libcaca { };
79567956
79577957 libcanberra_gtk3 = callPackage ../development/libraries/libcanberra {
7958− gtk = pkgs.gtk3;
7958+ gtk = pkgs.gtk3;
79597959 };
79607960 libcanberra_gtk2 = pkgs.libcanberra_gtk3.override { gtk = pkgs.gtk2; };
79617961
@@ -12896,6 +12896,13 @@ in
1289612896 });
1289712897 emacs24Macport = self.emacs24Macport_24_5;
1289812898
12899+ emacs25Macport_25_1 = lowPrio (callPackage ../applications/editors/emacs/macport-25.1.nix {
12900+ inherit (darwin.apple_sdk.frameworks)
12901+ AppKit Carbon Cocoa IOKit OSAKit Quartz QuartzCore WebKit
12902+ ImageCaptureCore GSS ImageIO;
12903+ });
12904+ emacs25Macport = self.emacs25Macport_25_1;
12905+
1289912906 emacsPackagesGen = emacs: self: let callPackage = newScope self; in rec {
1290012907 inherit emacs;
1290112908