From aa2160e1b62bdc6795c465e68301ec8684540b24 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Mon, 28 May 2018 13:33:08 -0400 Subject: [PATCH] =?UTF-8?q?emacs26:=20add=20some=20tweaks=20from=20jwiegle?= =?UTF-8?q?y=E2=80=99s=20overlay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit original src: https://github.com/jwiegley/nix-config/blob/f85c560bf8165fecbbd6a28bc2ba0ebbafeb3cf3/overlays/10-emacs.nix --- pkgs/applications/editors/emacs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/editors/emacs/default.nix b/pkgs/applications/editors/emacs/default.nix index b82f97e445f..67afdb24cd4 100644 --- a/pkgs/applications/editors/emacs/default.nix +++ b/pkgs/applications/editors/emacs/default.nix @@ -40,6 +40,12 @@ stdenv.mkDerivation rec { ./clean-env.patch ]; + postPatch = lib.optionalString srcRepo '' + rm -fr .git + ''; + + CFLAGS = "-DMAC_OS_X_VERSION_MAX_ALLOWED=101200"; + nativeBuildInputs = [ pkgconfig ] ++ lib.optionals srcRepo [ autoconf automake texinfo ] ++ lib.optional (withX && (withGTK3 || withXwidgets)) wrapGAppsHook;