about summary refs log tree commit diff stats
path: root/pkgs/emacs-unlimited-select
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/emacs-unlimited-select')
-rw-r--r--pkgs/emacs-unlimited-select/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/emacs-unlimited-select/default.nix b/pkgs/emacs-unlimited-select/default.nix
new file mode 100644
index 0000000..88be450
--- /dev/null
+++ b/pkgs/emacs-unlimited-select/default.nix
@@ -0,0 +1,10 @@
+{ stdenv
+, emacs
+}:
+
+assert stdenv.isDarwin;
+
+emacs.overrideAttrs (old: {
+  NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") +
+    " -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT";
+})