summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-28 13:33:08 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-28 13:35:10 -0400
commitaa2160e1b62bdc6795c465e68301ec8684540b24 (patch)
treed6314fc73d8af4e165702c90e45bcd8bc837c843 /pkgs/applications/editors
parenta87b50bc6341c4539ee49fc6b1d14820b85a23db (diff)
downloadnixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar.gz
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar.bz2
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar.lz
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar.xz
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.tar.zst
nixlib-aa2160e1b62bdc6795c465e68301ec8684540b24.zip
emacs26: add some tweaks from jwiegley’s overlay
original src:
https://github.com/jwiegley/nix-config/blob/f85c560bf8165fecbbd6a28bc2ba0ebbafeb3cf3/overlays/10-emacs.nix
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/emacs/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/default.nix b/pkgs/applications/editors/emacs/default.nix
index b82f97e445f6..67afdb24cd47 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;