1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ stdenv , lib , emacs }: emacs.overrideAttrs (old: { NIX_CFLAGS_COMPILE = (old.NIX_CFLAGS_COMPILE or "") + " -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"; meta = with lib; old.meta // { broken = !stdenv.isDarwin; platforms = platforms.darwin; }; })