From 72a771b6e4b3583a3f8b5ae118b60fc16b012ac9 Mon Sep 17 00:00:00 2001 From: "Jason \"Don\" O'Conal" Date: Wed, 3 Jul 2013 19:52:22 +1000 Subject: [PATCH] emacs24: fix build on darwin --- pkgs/applications/editors/emacs-24/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index a781cb373466..470d8f53cb85 100644 --- a/pkgs/applications/editors/emacs-24/default.nix +++ b/pkgs/applications/editors/emacs-24/default.nix @@ -44,7 +44,7 @@ EOF doCheck = true; - meta = { + meta = with stdenv.lib; { description = "GNU Emacs 24, the extensible, customizable text editor"; longDescription = '' @@ -67,7 +67,7 @@ EOF homepage = "http://www.gnu.org/software/emacs/"; license = "GPLv3+"; - maintainers = with stdenv.lib.maintainers; [ ludo simons chaoflow ]; - platforms = stdenv.lib.platforms.all; + maintainers = with maintainers; [ chaoflow lovek323 ludo simons ]; + platforms = platforms.all; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0000d81b861f..134e2101043e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7232,6 +7232,12 @@ let alsaLib = null; imagemagick = null; texinfo = texinfo5; + + # use gccApple on darwin to deal with: unexec: 'my_edata is not in section + # __data' + stdenv = if stdenv.isDarwin + then stdenvAdapters.overrideGCC stdenv gccApple + else stdenv; }; emacsPackages = emacs: self: let callPackage = newScope self; in rec {