From 3506c0bf04538c4a25b57dd43600b61907796008 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 20 Aug 2015 08:37:04 -0400 Subject: [PATCH] emacs: Build cocoa on darwin --- pkgs/applications/editors/emacs-24/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index 178b2a306af..6c52a899108 100644 --- a/pkgs/applications/editors/emacs-24/default.nix +++ b/pkgs/applications/editors/emacs-24/default.nix @@ -50,7 +50,9 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo; configureFlags = - if withX + if stdenv.isDarwin + then [ "--with-ns" "--disable-ns-self-contained" ] + else if withX then [ "--with-x-toolkit=${toolkit}" "--with-xft" ] else [ "--with-x=no" "--with-xpm=no" "--with-jpeg=no" "--with-png=no" "--with-gif=no" "--with-tiff=no" ]; @@ -61,6 +63,9 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $out/share/emacs/site-lisp/ cp ${./site-start.el} $out/share/emacs/site-lisp/site-start.el + '' + stdenv.lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + mv nextstep/Emacs.app $out/Applications ''; doCheck = true;